Download Now
Forums

    Reference ShadowLighting

    Declared in Codebot.Render.Shaders.pas on line 154

    ShadowLighting = ShadowPrecision + 'float shadowLit(sampler2DShadow map, vec4 c) {'#10 + '  vec3 p = c.xyz / c.w * 0.5 + 0.5;'#10 + '  if (p.x < 0.0 || p.x > 1.0 || p.y < 0.0 || p.y > 1.0 || p.z > 1.0)'#10 + '    return 1.0;'#10 + '  vec2 texel = 1.0 / vec2(textureSize(map, 0));'#10 + '  float lit = 0.0;'#10 + ShadowSamples + '}'#10;