mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-01 11:56:58 -05:00
39 lines
640 B
Text
39 lines
640 B
Text
|
struct v2f {
|
||
|
vec4 vertex;
|
||
|
};
|
||
|
struct appdata_t {
|
||
|
vec4 vertex;
|
||
|
};
|
||
|
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;
|
||
|
return o_2;
|
||
|
}
|
||
|
|
||
|
void main ()
|
||
|
{
|
||
|
appdata_t xlt_v_4;
|
||
|
v2f xl_retval_5;
|
||
|
vec4 tmpvar_6;
|
||
|
tmpvar_6 = gl_Vertex.xyzw;
|
||
|
vec4 tmpvar_7;
|
||
|
tmpvar_7 = tmpvar_6;
|
||
|
xlt_v_4.vertex = tmpvar_7;
|
||
|
v2f tmpvar_8;
|
||
|
tmpvar_8 = vert (xlt_v_4);
|
||
|
v2f tmpvar_9;
|
||
|
tmpvar_9 = tmpvar_8;
|
||
|
xl_retval_5 = tmpvar_9;
|
||
|
vec4 tmpvar_10;
|
||
|
tmpvar_10 = xl_retval_5.vertex.xyzw;
|
||
|
vec4 tmpvar_11;
|
||
|
tmpvar_11 = tmpvar_10;
|
||
|
gl_Position = tmpvar_11;
|
||
|
}
|
||
|
|