bgfx/3rdparty/glsl-optimizer/tests/fragment/texProj-inES3.txt

21 lines
386 B
Text
Raw Normal View History

2014-10-11 15:32:43 -04:00
#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;
}