mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 00:58:30 -05:00
25 lines
603 B
Text
25 lines
603 B
Text
|
#extension GL_EXT_shader_texture_lod : enable
|
||
|
#extension GL_OES_standard_derivatives : enable
|
||
|
uniform sampler2D tex;
|
||
|
uniform samplerCube cub;
|
||
|
varying vec3 uv;
|
||
|
void main ()
|
||
|
{
|
||
|
vec2 tmpvar_1;
|
||
|
tmpvar_1 = dFdx (uv.xy);
|
||
|
vec2 tmpvar_2;
|
||
|
tmpvar_2 = dFdy (uv.xy);
|
||
|
lowp vec4 tmpvar_3;
|
||
|
tmpvar_3 = texture2DGradEXT (tex, uv.xy, tmpvar_1, tmpvar_2);
|
||
|
vec3 tmpvar_4;
|
||
|
tmpvar_4 = dFdx (uv);
|
||
|
vec3 tmpvar_5;
|
||
|
tmpvar_5 = dFdy (uv);
|
||
|
lowp vec4 tmpvar_6;
|
||
|
tmpvar_6 = textureCubeGradEXT (cub, uv, tmpvar_4, tmpvar_5);
|
||
|
lowp vec4 tmpvar_7;
|
||
|
tmpvar_7 = (tmpvar_3 + tmpvar_6);
|
||
|
gl_FragColor = tmpvar_7;
|
||
|
}
|
||
|
|