mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Cleanup selection mesh code, add shaders for halo and selection boxes
This commit is contained in:
9
client/shaders/selection_shader/opengl_fragment.glsl
Normal file
9
client/shaders/selection_shader/opengl_fragment.glsl
Normal file
@@ -0,0 +1,9 @@
|
||||
uniform sampler2D baseTexture;
|
||||
|
||||
void main(void)
|
||||
{
|
||||
vec2 uv = gl_TexCoord[0].st;
|
||||
vec4 color = texture2D(baseTexture, uv);
|
||||
color.rgb *= gl_Color.rgb;
|
||||
gl_FragColor = color;
|
||||
}
|
Reference in New Issue
Block a user