minetest/client/shaders/selection_shader/opengl_vertex.glsl

15 lines
250 B
Plaintext
Raw Normal View History

varying lowp vec4 varColor;
varying mediump vec2 varTexCoord;
2016-03-25 15:57:18 +01:00
void main(void)
{
varTexCoord = inTexCoord0.st;
gl_Position = mWorldViewProj * inVertexPosition;
2016-03-25 15:57:18 +01:00
2021-05-08 20:18:29 +02:00
#ifdef GL_ES
varColor = inVertexColor.bgra;
#else
varColor = inVertexColor;
2021-05-08 20:18:29 +02:00
#endif
2016-03-25 15:57:18 +01:00
}