XRay3D/test/shader/render2.vert

16 lines
266 B
GLSL
Raw Permalink Normal View History

2020-04-17 18:11:57 +02:00
uniform mat4 modelview;
uniform mat4 projection;
uniform mat4 lightProjection;
uniform mat4 lightModelview;
varying vec4 lightCoord;
void main()
{
gl_Position = projection * modelview * gl_Vertex;
lightCoord = lightProjection * lightModelview * gl_Vertex;
}