Big update on PSX Shader Fog


New Shader Version for Emulating PlayStation 1 Style Graphics

The new version of the shader for emulating PlayStation 1-style graphics introduces several significant improvements aimed at simplifying the code, enhancing visual effects, and expanding customization options. In this article, i will review the key changes and their impact on the shader's functionality.

Support for DirectX and OpenGL

The shader now supports choosing between DirectX and OpenGL. This feature provides greater flexibility for developers and simplifies the integration of the shader into projects using different graphics APIs.

Automatic Fog Configuration from Scene Parameters

In the new version of the shader, fog is no longer configured within the shader behavior itself. Instead, fog parameters are now extracted from the scene settings of the engine. This simplifies the process of configuring and managing fog, as developers no longer need to manually set these parameters within the shader code. Fog is now managed through the general scene parameters, making the shader more user-friendly and intuitive.

Perspective Correction Fix

A significant improvement is the revised perspective correction that addresses the texture distortion issue present in the previous version of the shader.

Updated Jittering Method

The jittering method has also been updated for increased efficiency. This method replaces the more complex previous algorithm, providing a simpler and more effective implementation of jittering. As a result, the same visual effect is achieved with reduced computational overhead.

New Dithering Function

The new shader version includes an enhanced dithering function that improves visual capabilities. For example, it adds the ability to adjust the "color depth," allowing for more precise styling of visual effects in the PlayStation 1 style. This feature offers greater flexibility in creating retro graphics and better reproduces the visual style of games from that era.

Conclusion

The new version of the shader represents a significant improvement over the previous one. Enhanced support for various graphics APIs, automatic fog configuration, more accurate perspective correction, an efficient jittering method, and a new dithering function make the shader a more powerful and user-friendly tool for creating PlayStation 1-style visual effects. These changes not only simplify the code and its maintenance but also greatly expand the possibilities for creating unique graphical styles in games on the CopperCube platform.


Files

behavior_psx_shader.js 9.9 kB
Aug 23, 2024

Get CopperCube PSX Shader

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.