mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-11 16:51:32 -05:00
20 lines
386 B
Text
20 lines
386 B
Text
#version 300 es
|
|
out mediump vec4 _fragData;
|
|
|
|
uniform sampler2D tex;
|
|
uniform sampler2DShadow shadowmap;
|
|
|
|
in highp vec4 uv;
|
|
|
|
void main() {
|
|
lowp vec4 c;
|
|
c = textureProj(tex, uv);
|
|
c += textureProj(tex, uv.xyz);
|
|
c += textureProjLod(tex, uv, 1.0);
|
|
c += textureProjLod(tex, uv.xyz, 1.0);
|
|
|
|
c += vec4(texture(shadowmap, uv.xyz));
|
|
c += vec4(textureProj(shadowmap, uv));
|
|
|
|
_fragData = c;
|
|
}
|