Shaders/marker-pin.vert
raw| 1 | // -*-C++-*- |
| 2 | |
| 3 | // Shader that uses OpenGL state values to do per-pixel lighting |
| 4 | // |
| 5 | // The only light used is gl_LightSource[0], which is assumed to be |
| 6 | // directional. |
| 7 | // |
| 8 | // Diffuse colors come from the gl_Color, ambient from the material. This is |
| 9 | // equivalent to osg::Material::DIFFUSE. |
| 10 | #version 120 |
| 11 | |
| 12 | void main() |
| 13 | { |
| 14 | gl_Position = ftransform(); |
| 15 | gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0; |
| 16 | gl_FrontColor = gl_Color; |
| 17 | gl_BackColor = gl_Color; |
| 18 | } |