bgfx/3rdparty/glsl-optimizer/tests/vertex/unity-Hidden_Noise_Shader_RGB-out.txt
Branimir Karadzic dee3fe5266 Initial commit.
2012-04-03 20:30:07 -07:00

23 lines
732 B
Text

uniform vec4 _ScratchOffsetScale;
uniform vec4 _GrainOffsetScale;
void main ()
{
vec4 tmpvar_1;
tmpvar_1.zw = vec2(0.0, 0.0);
tmpvar_1.x = gl_MultiTexCoord0.x;
tmpvar_1.y = gl_MultiTexCoord0.y;
gl_Position = (gl_ModelViewProjectionMatrix * gl_Vertex);
vec4 tmpvar_2;
tmpvar_2.zw = vec2(0.0, 0.0);
tmpvar_2.xy = (gl_TextureMatrix[0] * tmpvar_1).xy;
gl_TexCoord[0] = tmpvar_2;
vec4 tmpvar_3;
tmpvar_3.zw = vec2(0.0, 0.0);
tmpvar_3.xy = ((gl_MultiTexCoord0.xy * _GrainOffsetScale.zw) + _GrainOffsetScale.xy);
gl_TexCoord[1] = tmpvar_3;
vec4 tmpvar_4;
tmpvar_4.zw = vec2(0.0, 0.0);
tmpvar_4.xy = ((gl_MultiTexCoord0.xy * _ScratchOffsetScale.zw) + _ScratchOffsetScale.xy);
gl_TexCoord[2] = tmpvar_4;
}