mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-04 21:31:11 -05:00
71 lines
1.4 KiB
Text
71 lines
1.4 KiB
Text
|
struct v2f {
|
||
|
vec4 vertex;
|
||
|
vec4 color;
|
||
|
vec2 texcoord;
|
||
|
};
|
||
|
struct appdata_t {
|
||
|
vec4 vertex;
|
||
|
vec4 color;
|
||
|
vec2 texcoord;
|
||
|
};
|
||
|
uniform vec4 _MainTex_ST;
|
||
|
v2f vert (
|
||
|
in appdata_t v_1
|
||
|
)
|
||
|
{
|
||
|
v2f o_2;
|
||
|
vec4 tmpvar_3;
|
||
|
tmpvar_3 = (gl_ModelViewProjectionMatrix * v_1.vertex);
|
||
|
o_2.vertex = tmpvar_3;
|
||
|
vec4 tmpvar_4;
|
||
|
tmpvar_4 = v_1.color;
|
||
|
o_2.color = tmpvar_4;
|
||
|
vec2 tmpvar_5;
|
||
|
tmpvar_5 = ((v_1.texcoord.xy * _MainTex_ST.xy) + _MainTex_ST.zw);
|
||
|
o_2.texcoord = tmpvar_5;
|
||
|
return o_2;
|
||
|
}
|
||
|
|
||
|
void main ()
|
||
|
{
|
||
|
appdata_t xlt_v_6;
|
||
|
v2f xl_retval_7;
|
||
|
vec4 tmpvar_8;
|
||
|
tmpvar_8 = gl_Vertex.xyzw;
|
||
|
vec4 tmpvar_9;
|
||
|
tmpvar_9 = tmpvar_8;
|
||
|
xlt_v_6.vertex = tmpvar_9;
|
||
|
vec4 tmpvar_10;
|
||
|
tmpvar_10 = gl_Color.xyzw;
|
||
|
vec4 tmpvar_11;
|
||
|
tmpvar_11 = tmpvar_10;
|
||
|
xlt_v_6.color = tmpvar_11;
|
||
|
vec2 tmpvar_12;
|
||
|
tmpvar_12 = gl_MultiTexCoord0.xy;
|
||
|
vec2 tmpvar_13;
|
||
|
tmpvar_13 = tmpvar_12;
|
||
|
xlt_v_6.texcoord = tmpvar_13;
|
||
|
v2f tmpvar_14;
|
||
|
tmpvar_14 = vert (xlt_v_6);
|
||
|
v2f tmpvar_15;
|
||
|
tmpvar_15 = tmpvar_14;
|
||
|
xl_retval_7 = tmpvar_15;
|
||
|
vec4 tmpvar_16;
|
||
|
tmpvar_16 = xl_retval_7.vertex.xyzw;
|
||
|
vec4 tmpvar_17;
|
||
|
tmpvar_17 = tmpvar_16;
|
||
|
gl_Position = tmpvar_17;
|
||
|
vec4 tmpvar_18;
|
||
|
tmpvar_18 = xl_retval_7.color.xyzw;
|
||
|
vec4 tmpvar_19;
|
||
|
tmpvar_19 = tmpvar_18;
|
||
|
gl_FrontColor = tmpvar_19;
|
||
|
vec4 tmpvar_20;
|
||
|
tmpvar_20.zw = vec2(0.0, 0.0);
|
||
|
tmpvar_20.xy = xl_retval_7.texcoord.xy;
|
||
|
vec4 tmpvar_21;
|
||
|
tmpvar_21 = tmpvar_20;
|
||
|
gl_TexCoord[0] = tmpvar_21;
|
||
|
}
|
||
|
|