Debian Codegraph @

Shaders/ws30-overlay-ALS.vert

raw
1 // -*-C++-*-
2 #version 120
3
4 //Copied from grass-ALS.vert
5
6 // The UV scale controls the grass thickness. Lower numbers thicken the blades
7 // while higher numbers make them thinner.
8 #define UV_SCALE 10.0
9
10 varying vec3 v_normal;
11
12 void main()
13 {
14
15 gl_Position = gl_Vertex;
16
17 // WS2: gl_TexCoord[0] = gl_MultiTexCoord0 * UV_SCALE;
18 gl_TexCoord[0] = gl_MultiTexCoord0 * UV_SCALE;
19
20 v_normal = gl_Normal;
21 }