Mindustry/core/assets/shaders/sun.frag
2020-05-10 13:34:52 -04:00

16 lines
241 B
GLSL
Executable File

#ifdef GL_ES
precision mediump float;
precision lowp int;
#endif
#define step 0.5
const int MAX_COLORS = 10;
varying float v_height;
uniform sampler2D u_colors;
void main(){
gl_FragColor = texture2D(u_colors, vec2(v_height, 0.0));
}