mirror of
https://github.com/minetest/minetest.git
synced 2024-12-26 07:57:29 +01:00
22 lines
334 B
Plaintext
22 lines
334 B
Plaintext
|
uniform vec4 emissiveColor;
|
||
|
|
||
|
varying lowp vec4 varColor;
|
||
|
|
||
|
varying vec3 eyeVec;
|
||
|
|
||
|
void main(void)
|
||
|
{
|
||
|
gl_Position = mWorldViewProj * inVertexPosition;
|
||
|
|
||
|
#ifdef GL_ES
|
||
|
vec4 color = inVertexColor.bgra;
|
||
|
#else
|
||
|
vec4 color = inVertexColor;
|
||
|
#endif
|
||
|
|
||
|
color *= emissiveColor;
|
||
|
varColor = color;
|
||
|
|
||
|
eyeVec = -(mWorldView * inVertexPosition).xyz;
|
||
|
}
|