Debian Codegraph @

src/scene/glsl/source/terrain.vs

raw
1 /* OpenGL shader effect (used to enhance the Castle Game Engine shaders,
2 see https://castle-engine.io/compositing_shaders.php ),
3 applied over terrain.
4
5 This simply saves position and normal in object space,
6 to be used by terrain.fs code. */
7
8 varying vec3 terrain_position;
9 varying vec3 terrain_normal;
10
11 void PLUG_vertex_object_space(
12 const in vec4 vertex_object, const in vec3 normal_object)
13 {
14 terrain_position = vec3(vertex_object);
15 terrain_normal = normal_object;
16 }