mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-29 11:05:36 -05:00
24 lines
680 B
Text
24 lines
680 B
Text
|
#version 300 es
|
||
|
precision mediump float;
|
||
|
|
||
|
float xll_shadow2D(sampler2DShadow s, vec3 coord) { return texture (s, coord); }
|
||
|
float xll_shadow2Dproj(sampler2DShadow s, vec4 coord) { return textureProj (s, coord); }
|
||
|
uniform sampler2DShadow shadowmap;
|
||
|
lowp vec4 xlat_main( in highp vec4 uv );
|
||
|
#line 4
|
||
|
lowp vec4 xlat_main( in highp vec4 uv ) {
|
||
|
lowp float s1;
|
||
|
lowp float s2;
|
||
|
s1 = xll_shadow2D( shadowmap, uv.xyz);
|
||
|
s2 = xll_shadow2Dproj( shadowmap, uv);
|
||
|
#line 8
|
||
|
return vec4( (s1 + s2));
|
||
|
}
|
||
|
in highp vec4 xlv_TEXCOORD0;
|
||
|
out vec4 _fragColor;
|
||
|
void main() {
|
||
|
lowp vec4 xl_retval;
|
||
|
xl_retval = xlat_main( vec4(xlv_TEXCOORD0));
|
||
|
_fragColor = vec4( xl_retval);
|
||
|
}
|