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