mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
* 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
12 lines
282 B
Plaintext
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));
|
|
}
|
|
|