mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-29 11:05:36 -05:00
26 lines
557 B
Text
26 lines
557 B
Text
|
#version 300 es
|
||
|
precision mediump float;
|
||
|
uniform sampler2D tex;
|
||
|
uniform samplerCube cub;
|
||
|
in vec3 uv;
|
||
|
out lowp vec4 _fragColor;
|
||
|
void main ()
|
||
|
{
|
||
|
vec2 tmpvar_1;
|
||
|
tmpvar_1 = dFdx (uv.xy);
|
||
|
vec2 tmpvar_2;
|
||
|
tmpvar_2 = dFdy (uv.xy);
|
||
|
lowp vec4 tmpvar_3;
|
||
|
tmpvar_3 = textureGrad (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 = textureGrad (cub, uv, tmpvar_4, tmpvar_5);
|
||
|
lowp vec4 tmpvar_7;
|
||
|
tmpvar_7 = (tmpvar_3 + tmpvar_6);
|
||
|
_fragColor = tmpvar_7;
|
||
|
}
|
||
|
|