1
0
Fork 0
fgdata/Shaders/HDR/stars.vert
Fernando García Liñán 746532f098 HDR: Render the Moon, stars and planets
Moon textures have been adapted from the following webpage:

https://svs.gsfc.nasa.gov/4720
NASA's Scientific Visualization Studio
2023-11-06 14:56:45 +01:00

16 lines
286 B
GLSL

#version 330 core
layout(location = 0) in vec4 pos;
layout(location = 2) in vec4 vertex_color;
out VS_OUT {
vec4 color;
} vs_out;
uniform mat4 osg_ModelViewProjectionMatrix;
void main()
{
gl_Position = osg_ModelViewProjectionMatrix * pos;
vs_out.color = vertex_color;
}