mirror of
https://github.com/quantum5/punyverse.git
synced 2025-08-17 06:09:34 -04:00
After all, it doesn't exactly make sense for saturn's moons and mercury to have more detailed textures than larger objects like the sun or venus. Also used one single texture to do the transparency mask for the glow, instead of having separate textures for each glowy object.
13 lines
195 B
GLSL
13 lines
195 B
GLSL
#version 330 core
|
|
|
|
in float v_u;
|
|
|
|
out vec4 o_fragColor;
|
|
|
|
uniform vec3 u_color;
|
|
uniform sampler1D u_transparency;
|
|
|
|
void main() {
|
|
o_fragColor = vec4(u_color, texture(u_transparency, v_u).r);
|
|
}
|