mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
49 lines
1.5 KiB
Text
49 lines
1.5 KiB
Text
varying vec4 xlv_FOG;
|
|
uniform vec4 unity_LightmapST;
|
|
uniform vec4 unity_LightmapFade;
|
|
uniform vec4 _Splat3_ST;
|
|
uniform vec4 _Splat2_ST;
|
|
uniform vec4 _Splat1_ST;
|
|
uniform vec4 _Splat0_ST;
|
|
uniform vec4 _ProjectionParams;
|
|
uniform vec4 _Control_ST;
|
|
void main ()
|
|
{
|
|
vec4 tmpvar_1;
|
|
vec4 tmpvar_2;
|
|
vec3 tmpvar_3;
|
|
vec4 tmpvar_4;
|
|
tmpvar_4 = (gl_ModelViewProjectionMatrix * gl_Vertex);
|
|
tmpvar_1.xy = ((gl_MultiTexCoord0.xy * _Control_ST.xy) + _Control_ST.zw);
|
|
tmpvar_1.zw = ((gl_MultiTexCoord0.xy * _Splat0_ST.xy) + _Splat0_ST.zw);
|
|
tmpvar_2.xy = ((gl_MultiTexCoord0.xy * _Splat1_ST.xy) + _Splat1_ST.zw);
|
|
tmpvar_2.zw = ((gl_MultiTexCoord0.xy * _Splat2_ST.xy) + _Splat2_ST.zw);
|
|
vec4 o_i0;
|
|
vec4 tmpvar_5;
|
|
tmpvar_5 = (tmpvar_4 * 0.5);
|
|
o_i0 = tmpvar_5;
|
|
vec2 tmpvar_6;
|
|
tmpvar_6.x = tmpvar_5.x;
|
|
tmpvar_6.y = (tmpvar_5.y * _ProjectionParams.x);
|
|
o_i0.xy = (tmpvar_6 + tmpvar_5.w);
|
|
o_i0.zw = tmpvar_4.zw;
|
|
tmpvar_3.xy = ((gl_MultiTexCoord1.xy * unity_LightmapST.xy) + unity_LightmapST.zw);
|
|
tmpvar_3.z = ((-((gl_ModelViewMatrix * gl_Vertex).z) * unity_LightmapFade.z) + unity_LightmapFade.w);
|
|
gl_Position = tmpvar_4;
|
|
vec4 tmpvar_7;
|
|
tmpvar_7.yzw = vec3(0.0, 0.0, 0.0);
|
|
tmpvar_7.x = tmpvar_4.z;
|
|
xlv_FOG = tmpvar_7;
|
|
gl_TexCoord[0] = tmpvar_1;
|
|
gl_TexCoord[1] = tmpvar_2;
|
|
vec4 tmpvar_8;
|
|
tmpvar_8.zw = vec2(0.0, 0.0);
|
|
tmpvar_8.xy = ((gl_MultiTexCoord0.xy * _Splat3_ST.xy) + _Splat3_ST.zw);
|
|
gl_TexCoord[2] = tmpvar_8;
|
|
gl_TexCoord[3] = o_i0;
|
|
vec4 tmpvar_9;
|
|
tmpvar_9.w = 0.0;
|
|
tmpvar_9.xyz = tmpvar_3;
|
|
gl_TexCoord[4] = tmpvar_9;
|
|
}
|
|
|