punyverse/punyverse/shaders/sky.fragment.glsl
2018-08-29 02:20:38 -04:00

14 lines
298 B
GLSL

#version 130
in vec3 v_direction;
out vec4 o_fragColor;
uniform bool u_lines;
uniform samplerCube u_skysphere;
uniform samplerCube u_constellation;
void main() {
o_fragColor = texture(u_skysphere, v_direction);
if (u_lines)
o_fragColor += texture(u_constellation, v_direction);
}