Shaders: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
Here is some general information about how they are used (for those who know how to write them). | |||
'''''More information can be found in the [[Free Shaders|free shaders]] section of the wiki''''' | |||
By editing the shaders included with the engine you can get various effects, such as sepia, invert or cell shading effect. Shader files are located in the ProjectName/Shaders folder, and they can be changed via a script (see [[Scripting#shader]], List of Commands, shader set). Only two object uniforms are passed to the shader - the texture and the number of activated light sources. The sources themselves are sorted by the engine in descending order, and the shader uses OpenGL's built-in variables to access the sources. |
Latest revision as of 00:54, 1 September 2025
Here is some general information about how they are used (for those who know how to write them).
More information can be found in the free shaders section of the wiki
By editing the shaders included with the engine you can get various effects, such as sepia, invert or cell shading effect. Shader files are located in the ProjectName/Shaders folder, and they can be changed via a script (see Scripting#shader, List of Commands, shader set). Only two object uniforms are passed to the shader - the texture and the number of activated light sources. The sources themselves are sorted by the engine in descending order, and the shader uses OpenGL's built-in variables to access the sources.