2015-06-22 04:34:56 +02:00
|
|
|
uniform mat4 mWorld;
|
|
|
|
|
2020-10-25 18:01:03 +01:00
|
|
|
varying lowp vec4 varColor;
|
|
|
|
varying mediump vec2 varTexCoord;
|
|
|
|
|
2015-06-22 04:34:56 +02:00
|
|
|
void main(void)
|
|
|
|
{
|
2020-10-25 18:01:03 +01:00
|
|
|
varTexCoord = inTexCoord0.st;
|
|
|
|
gl_Position = mWorldViewProj * inVertexPosition;
|
2021-05-08 20:18:29 +02:00
|
|
|
#ifdef GL_ES
|
|
|
|
varColor = inVertexColor.bgra;
|
|
|
|
#else
|
2020-10-25 18:01:03 +01:00
|
|
|
varColor = inVertexColor;
|
2021-05-08 20:18:29 +02:00
|
|
|
#endif
|
2015-06-22 04:34:56 +02:00
|
|
|
}
|