From 9d5a22a0aa88125c3d41fc05bff72ae188b1a00b Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 30 Mar 2018 15:27:35 +0100 Subject: [PATCH] Added suport for writing to gl_ClipVertex --- src/osgText/shaders/text_vert.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/osgText/shaders/text_vert.cpp b/src/osgText/shaders/text_vert.cpp index 72506284f..7791e06ad 100644 --- a/src/osgText/shaders/text_vert.cpp +++ b/src/osgText/shaders/text_vert.cpp @@ -9,5 +9,9 @@ char text_vert[] = "$OSG_GLSL_VERSION\n" " gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;\n" " texCoord = gl_MultiTexCoord0.xy;\n" " vertexColor = gl_Color;\n" + "\n" + "#ifndef GL_ES\n" + " gl_ClipVertex = gl_ModelViewMatrix * gl_Vertex;\n" + "#endif\n" "}\n" "\n";