Debian Codegraph @

src/scene/glsl/README.md

raw
1 GLSL (OpenGL Shading Language) code for rendering scenes in Castle Game Engine.
2 Everything rendered by TCastleScene within TCastleViewport is done by these shaders.
3
4 Extensions:
5 - *.vs - vertex shader
6 - *.fs - fragment shader
7 - *.gs - geometry shader
8 - *.glsl - shader code that may be placed in various shader stages
9 E.g. lighting calculation may be done in either vertex shader
10 (for Gouraud shading) or in fragment shader (for Phong shading).
11
12 See https://castle-engine.io/compositing_shaders.php
13 for our "compositing shaders" approach, which is used to "compose"
14 the final shader from multiple pieces.
15 This approach is used both internally (to construct the final shader from
16 various pieces defined in this directory) and externally (to allow user
17 to adjust shaders using "Effect" nodes).
18 The shader generation code is contained in CGE
19 src/x3d/opengl/castlerendererinternalshader.pas unit.
20
21 See https://castle-engine.io/x3d_implementation_shaders.php
22 for various information about shader code in X3D.