mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-11 00:31:28 -05:00
24 lines
540 B
Text
24 lines
540 B
Text
|
#extension GL_ARB_shader_texture_lod : 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);
|
||
|
vec4 tmpvar_3;
|
||
|
tmpvar_3 = texture2DGradARB (tex, uv.xy, tmpvar_1, tmpvar_2);
|
||
|
vec3 tmpvar_4;
|
||
|
tmpvar_4 = dFdx (uv);
|
||
|
vec3 tmpvar_5;
|
||
|
tmpvar_5 = dFdy (uv);
|
||
|
vec4 tmpvar_6;
|
||
|
tmpvar_6 = textureCubeGradARB (cub, uv, tmpvar_4, tmpvar_5);
|
||
|
vec4 tmpvar_7;
|
||
|
tmpvar_7 = (tmpvar_3 + tmpvar_6);
|
||
|
gl_FragColor = tmpvar_7;
|
||
|
}
|
||
|
|