.shader: Difference between revisions
(Created page with "'''.shader files''' define '''shaders''', which are an important part of the Id Tech 3 graphics system. Shaders are text scripts which can be edited with a text editor. Th...") |
No edit summary |
||
Line 1: | Line 1: | ||
'''.shader files''' define '''shaders''', which are an important part of the [[Id Tech 3]] graphics system. Shaders are text scripts which can be edited with a text editor. The JK2 SDK also comes with a GUI shader editor called [[ShaderEd]]. | '''.shader files''' define '''shaders''', which are an important part of the [[Id Tech 3]] graphics system. Shaders are text scripts which can be edited with a text editor. The JK2 SDK also comes with a GUI shader editor called [[ShaderEd]]. | ||
In [[JO]] and [[JA]], .shader files are located in the ''shaders'' subdirectory. | |||
Basically speaking, a shader can be thought of as a dynamic [[texture]]. Using shaders, the following kinds of textures can be created: | |||
* animated textures | |||
* lit and glowing textures | |||
* moving/scrolling textures | |||
* sky textures | |||
* transparent or semi-transparent textures (eg. grates, glass) | |||
* grass | |||
Shaders do not only affect the visual appearance of surfaces, but can also change the behaviour of surfaces. So for example, shaders are used to create liquids, and surfaces made out of different kinds of materials (eg. metal, sand, snow). | |||
== See also == | == See also == |
Revision as of 10:02, 5 November 2021
.shader files define shaders, which are an important part of the Id Tech 3 graphics system. Shaders are text scripts which can be edited with a text editor. The JK2 SDK also comes with a GUI shader editor called ShaderEd.
In JO and JA, .shader files are located in the shaders subdirectory.
Basically speaking, a shader can be thought of as a dynamic texture. Using shaders, the following kinds of textures can be created:
- animated textures
- lit and glowing textures
- moving/scrolling textures
- sky textures
- transparent or semi-transparent textures (eg. grates, glass)
- grass
Shaders do not only affect the visual appearance of surfaces, but can also change the behaviour of surfaces. So for example, shaders are used to create liquids, and surfaces made out of different kinds of materials (eg. metal, sand, snow).