1
0
Fork 0
fgdata/Shaders/HDR/skydome.vert
2021-07-26 12:11:37 +02:00

13 lines
221 B
GLSL

#version 330 core
layout(location = 0) in vec4 pos;
out vec3 rayDir;
uniform mat4 osg_ModelViewProjectionMatrix;
void main()
{
gl_Position = osg_ModelViewProjectionMatrix * pos;
rayDir = normalize(pos.xyz);
}