mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-29 02:55:36 -05:00
14 lines
299 B
Text
14 lines
299 B
Text
|
#version 300 es
|
||
|
precision mediump float;
|
||
|
uniform sampler2D tex;
|
||
|
uniform samplerCube cub;
|
||
|
in vec3 uv;
|
||
|
out lowp vec4 _fragColor;
|
||
|
void main ()
|
||
|
{
|
||
|
_fragColor = (textureGrad (tex, uv.xy, dFdx(uv.xy), dFdy(uv.xy)) + textureGrad (cub, uv, dFdx(uv), dFdy(uv)));
|
||
|
}
|
||
|
|
||
|
|
||
|
// inputs: 1, stats: 5 alu 2 tex 0 flow
|