1
0
Fork 0
fgdata/Shaders/text.vert
Fernando García Liñán 49fa42faac Add shaders for osgText
2021-05-14 22:45:36 +02:00

16 lines
498 B
GLSL

#version 120
varying vec4 diffuse_term;
varying vec3 normal;
varying vec4 ecPosition;
void main()
{
gl_Position = ftransform();
ecPosition = gl_ModelViewMatrix * gl_Vertex;
gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0;
normal = gl_NormalMatrix * gl_Normal;
diffuse_term = gl_FrontMaterial.diffuse * gl_LightSource[0].diffuse;
gl_FrontColor = gl_FrontMaterial.emission + gl_FrontMaterial.ambient *
(gl_LightModel.ambient + gl_LightSource[0].ambient);
}