mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
44 lines
824 B
Text
44 lines
824 B
Text
struct v2f {
|
|
vec4 vertex;
|
|
vec4 color;
|
|
vec3 texcoord;
|
|
};
|
|
uniform samplerCube _MainTex;
|
|
vec4 frag (
|
|
in v2f i_1
|
|
)
|
|
{
|
|
vec4 tmpvar_2;
|
|
tmpvar_2 = textureCube (_MainTex, i_1.texcoord);
|
|
return tmpvar_2;
|
|
}
|
|
|
|
void main ()
|
|
{
|
|
v2f xlt_i_3;
|
|
vec4 xl_retval_4;
|
|
vec4 tmpvar_5;
|
|
tmpvar_5 = vec4(0.0, 0.0, 0.0, 0.0);
|
|
xlt_i_3.vertex = tmpvar_5;
|
|
vec4 tmpvar_6;
|
|
tmpvar_6 = gl_Color.xyzw;
|
|
vec4 tmpvar_7;
|
|
tmpvar_7 = tmpvar_6;
|
|
xlt_i_3.color = tmpvar_7;
|
|
vec3 tmpvar_8;
|
|
tmpvar_8 = gl_TexCoord[0].xyz;
|
|
vec3 tmpvar_9;
|
|
tmpvar_9 = tmpvar_8;
|
|
xlt_i_3.texcoord = tmpvar_9;
|
|
vec4 tmpvar_10;
|
|
tmpvar_10 = frag (xlt_i_3);
|
|
vec4 tmpvar_11;
|
|
tmpvar_11 = tmpvar_10;
|
|
xl_retval_4 = tmpvar_11;
|
|
vec4 tmpvar_12;
|
|
tmpvar_12 = xl_retval_4.xyzw;
|
|
vec4 tmpvar_13;
|
|
tmpvar_13 = tmpvar_12;
|
|
gl_FragData[0] = tmpvar_13;
|
|
}
|
|
|