diff options
Diffstat (limited to 'slideshow/opengl/basicVertexShader.glsl')
-rw-r--r-- | slideshow/opengl/basicVertexShader.glsl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/slideshow/opengl/basicVertexShader.glsl b/slideshow/opengl/basicVertexShader.glsl index bd26c1b52115..020616fff872 100644 --- a/slideshow/opengl/basicVertexShader.glsl +++ b/slideshow/opengl/basicVertexShader.glsl @@ -29,11 +29,13 @@ #version 120 varying vec2 v_texturePosition; +varying vec3 v_normal; void main( void ) { gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex; v_texturePosition = gl_MultiTexCoord0.xy; + v_normal = normalize(gl_NormalMatrix * gl_Normal); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |