mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 17:18:12 -05:00
23 lines
672 B
Text
23 lines
672 B
Text
#extension GL_EXT_shader_texture_lod : enable
|
|
#extension GL_EXT_shadow_samplers : enable
|
|
uniform sampler2D tex;
|
|
uniform lowp sampler2DShadow shadowmap;
|
|
varying highp vec4 uv;
|
|
void main ()
|
|
{
|
|
lowp vec4 c_1;
|
|
c_1 = (texture2DProj (tex, uv) + texture2DProj (tex, uv.xyz));
|
|
c_1 = (c_1 + texture2DProjLodEXT (tex, uv, 1.0));
|
|
c_1 = (c_1 + texture2DProjLodEXT (tex, uv.xyz, 1.0));
|
|
c_1 = (c_1 + vec4(shadow2DEXT (shadowmap, uv.xyz)));
|
|
c_1 = (c_1 + vec4(shadow2DProjEXT (shadowmap, uv)));
|
|
gl_FragColor = c_1;
|
|
}
|
|
|
|
|
|
// stats: 5 alu 6 tex 0 flow
|
|
// inputs: 1
|
|
// #0: uv (high float) 4x1 [-1]
|
|
// textures: 2
|
|
// #0: tex (low 2d) 0x0 [-1]
|
|
// #1: shadowmap (low 2d) 0x0 [-1]
|