Files
RobustToolbox/Resources/Shaders/Internal/light-hard.swsl
20kdc 5146bf8ac2 More configurable lighting (also, "Rounded" mode for Range) (#1274)
* Add support for 'Rounded' mode to Range (and thus Slider)

* Make lighting resolution more configurable

* Use a lighting presets dropper because RemieRichards said so

* Make ConfigLightingQuality not a property and instead two separate methods

* More configurable lighting: cleanup to use a switch rather than an if-chain
2020-09-07 10:57:44 +02:00

12 lines
282 B
Plaintext

#include "/Shaders/Internal/light_shared.swsl"
highp float createOcclusion(highp vec2 diff)
{
highp float ourDist = length(diff);
highp vec2 occlDist = occludeDepth(diff, shadowMap, lightIndex);
return smoothstep(0.1, 1.0, ChebyshevUpperBound(occlDist, ourDist));
}