bgfx/3rdparty/glsl-optimizer/tests/fragment/texProj-inES3.txt
2014-10-11 12:32:43 -07:00

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;
}