minetest/client/shaders/minimap_shader/opengl_vertex.glsl

16 lines
271 B
Plaintext
Raw Normal View History

2015-06-22 04:34:56 +02:00
uniform mat4 mWorld;
varying lowp vec4 varColor;
varying mediump vec2 varTexCoord;
2015-06-22 04:34:56 +02:00
void main(void)
{
varTexCoord = inTexCoord0.st;
gl_Position = mWorldViewProj * inVertexPosition;
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
2015-06-22 04:34:56 +02:00
}