mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-05 16:37:38 +07:00
16 lines
241 B
GLSL
Executable File
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));
|
|
} |