Download Now
Forums

    Reference ShadowSamples

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

    ShadowSamples = '  for (int x = -1; x <= 1; x++)'#10 + '    for (int y = -1; y <= 1; y++)'#10 + '      lit += texture(map, vec3(p.xy + vec2(x, y) * texel, p.z));'#10 + '  return lit / 9.0;'#10;