stk-code_catmod/data/shaders/irrlicht/COGLES2FixedPipeline.vsh

34 lines
721 B
V Shell
Raw Normal View History

/* Attributes */
attribute vec3 inVertexPosition;
attribute vec3 inVertexNormal;
attribute vec4 inVertexColor;
attribute vec2 inTexCoord0;
//attribute vec2 inTexCoord1;
/* Uniforms */
uniform mat4 uMvpMatrix;
2022-09-14 21:01:55 -04:00
uniform vec2 uTextureTrans0;
//uniform mat4 uTextureMatrix1;
/* Varyings */
varying vec2 varTexCoord0;
//varying vec2 varTexCoord1;
varying vec4 varVertexColor;
varying float varEyeDist;
void main(void)
{
gl_Position = uMvpMatrix * vec4(inVertexPosition,1.0);
2017-02-27 00:41:26 -05:00
2022-09-14 21:01:55 -04:00
varTexCoord0 = inTexCoord0 + uTextureTrans0;
2017-02-27 00:41:26 -05:00
//vec4 TexCoord1 = vec4(inTexCoord1.x, inTexCoord1.y, 0.0, 0.0);
//varTexCoord1 = vec4(uTextureMatrix1 * TexCoord1).xy;
2017-02-27 00:41:26 -05:00
varVertexColor = inVertexColor.zyxw;
}