mirror of
https://github.com/minetest/minetest.git
synced 2024-12-30 18:07:29 +01:00
d6da80fe24
closes #14985
18 lines
285 B
GLSL
18 lines
285 B
GLSL
uniform lowp vec4 materialColor;
|
|
|
|
varying lowp vec4 varColor;
|
|
|
|
varying highp vec3 eyeVec;
|
|
|
|
void main(void)
|
|
{
|
|
gl_Position = mWorldViewProj * inVertexPosition;
|
|
|
|
vec4 color = inVertexColor;
|
|
|
|
color *= materialColor;
|
|
varColor = color;
|
|
|
|
eyeVec = -(mWorldView * inVertexPosition).xyz;
|
|
}
|