sussycraft-engine/client/shaders/selection_shader/opengl_fragment.glsl

13 lines
235 B
Plaintext
Raw Normal View History

2023-02-19 21:41:32 +01:00
uniform sampler2D baseTexture;
varying lowp vec4 varColor;
varying mediump vec2 varTexCoord;
void main(void)
{
vec2 uv = varTexCoord.st;
vec4 color = texture2D(baseTexture, uv);
color.rgb *= varColor.rgb;
gl_FragColor = color;
}