#ifdef GL_ES precision mediump int; precision mediump float; #endif #define USE_OGRE_FROM_FUTURE #include OGRE_UNIFORMS( uniform mat4 worldViewProj; ) MAIN_PARAMETERS IN(vec4 vertex, POSITION) IN(vec2 uv0, TEXCOORD0) OUT(vec2 oUv0, TEXCOORD0) OUT(vec2 oUv1, TEXCOORD1) OUT(vec2 oUv2, TEXCOORD2) OUT(vec2 oUv3, TEXCOORD3) MAIN_DECLARATION { // Use standardise transform, so work accord with render system specific (RS depth, requires texture flipping, etc) gl_Position = mul(worldViewProj, vertex); oUv0 = uv0; oUv1 = oUv0; oUv2 = oUv0; oUv3 = oUv0; }