Author Topic: Soft shadow screenshots (/very/ image heavy)  (Read 15520 times)







I tried downloading the glsl file into the shaders folder, and it still won't work... Any help?




yep, everyone uses it and i still haven't fixed that glitch

see the sudden change in darkness on the road?

I tried downloading the glsl file into the shaders folder, and it still won't work... Any help?
Save the .glsl into the shaders folder and label it as Read-Only in Properties.

yep, everyone uses it and i still haven't fixed that glitch

see the sudden change in darkness on the road?
actually no

well maybe, but if I am seeing it then it's really faint

actually no
well maybe, but if I am seeing it then it's really faint

no taboo

it's because shadows in blockland are stored in separate depth arrays based on how far away from the viewpoint a fragment is
it uses various factors to calculate the correct array and the "offset" in it which are extremely difficult to get right

when not getting them right either sudden changes (like that), shadow acne or peter panning happens
to quote the code

// fudgeKey is very hard to get right.
// Try various values to fix weird patterns or "disconnected shadows".
// It depends on your shadow quality, too.
 
const float fudgeKey = 0.1f;
const float fudgeKeyMult2 = fudgeKey * 2.0f;
const float fudgeKeyMult3 = fudgeKey * 3.0f;
const float fudgeKeyMult4 = fudgeKey * 4.0f;

...shadow acne and peter panning
who writes this stuff