mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-01 11:56:58 -05:00
55 lines
1 KiB
Text
55 lines
1 KiB
Text
|
struct v2f {
|
||
|
vec4 vertex;
|
||
|
vec3 texcoord;
|
||
|
};
|
||
|
struct appdata_t {
|
||
|
vec4 vertex;
|
||
|
vec3 texcoord;
|
||
|
};
|
||
|
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;
|
||
|
vec3 tmpvar_4;
|
||
|
tmpvar_4 = v_1.texcoord;
|
||
|
o_2.texcoord = tmpvar_4;
|
||
|
return o_2;
|
||
|
}
|
||
|
|
||
|
void main ()
|
||
|
{
|
||
|
appdata_t xlt_v_5;
|
||
|
v2f xl_retval_6;
|
||
|
vec4 tmpvar_7;
|
||
|
tmpvar_7 = gl_Vertex.xyzw;
|
||
|
vec4 tmpvar_8;
|
||
|
tmpvar_8 = tmpvar_7;
|
||
|
xlt_v_5.vertex = tmpvar_8;
|
||
|
vec3 tmpvar_9;
|
||
|
tmpvar_9 = gl_MultiTexCoord0.xyz;
|
||
|
vec3 tmpvar_10;
|
||
|
tmpvar_10 = tmpvar_9;
|
||
|
xlt_v_5.texcoord = tmpvar_10;
|
||
|
v2f tmpvar_11;
|
||
|
tmpvar_11 = vert (xlt_v_5);
|
||
|
v2f tmpvar_12;
|
||
|
tmpvar_12 = tmpvar_11;
|
||
|
xl_retval_6 = tmpvar_12;
|
||
|
vec4 tmpvar_13;
|
||
|
tmpvar_13 = xl_retval_6.vertex.xyzw;
|
||
|
vec4 tmpvar_14;
|
||
|
tmpvar_14 = tmpvar_13;
|
||
|
gl_Position = tmpvar_14;
|
||
|
vec4 tmpvar_15;
|
||
|
tmpvar_15.w = 0.0;
|
||
|
tmpvar_15.xyz = xl_retval_6.texcoord.xyz;
|
||
|
vec4 tmpvar_16;
|
||
|
tmpvar_16 = tmpvar_15;
|
||
|
gl_TexCoord[0] = tmpvar_16;
|
||
|
}
|
||
|
|