Repository navigation
Implement Smooth Shadow and improvement - #1405
Conversation
|
Because it use noise as the smoothness it can look a bit noticable on high radius. This actually need some sort of denoiser to be smooth, but i think thats another time consuming task... Temporal denoiser or TAA is what i can think of right now. |
|
@ginga81 do you want to try this on linux? try with low resolution 512 or 1024 + far shadow 800m |
|
I also tried running it in OpenBVE, and I think it's absolutely fantastic and beautiful! |
f020b09 to
70f7945
Compare
|
Another fix and improvement after googling plenty of places. |
65dece3 to
90d88e7
Compare
90d88e7 to
6e751da
Compare
6e751da to
30d6ab4
Compare
|
Getting confusing as to what's been finished and ready for inclusion, you've got quite a few experimental branches on the go :) I've merged the preview PR; if you update this one with those options can get this merged. |
- BaseOptions: ShadowSmooth (bool, default true) and ShadowFilterRadius (double, default 1.5) for Vogel disk soft filtering - OptionsKey: add ShadowSmooth, ShadowFilterRadius keys
- default.frag: add uShadowSmooth/uShadowFilterRadius uniforms, SHADOW_GOLDEN_ANGLE/TWO_PI constants, interleavedGradientNoise/vogelDiskSample helpers; branch 5-tap Vogel+IGN (soft) vs 4-tap grid (sharp); auto-scaled radius - Shader.cs: add uShadowSmooth/uShadowFilterRadius locations, SetShadowSmooth/SetShadowFilterRadius - Shadows.cs: auto-scale effective radius by cascade count, shadow distance and resolution
- Options: save/load shadowsmooth/shadowfilterradius (clamped 0.5-3.0) - UI: one-row Smooth shadow [x] Softness: [Low/Medium/High] (auto-disabled when shadows off or smooth off), auto-scaled radius presets 1.0/1.5/2.5
- Options: save/load shadowsmooth/shadowfilterradius/shadowfiltercascades to options_rv.cfg - UI: tlpShadows row 6 Smooth shadow [x] [Low/Medium/High] + auto-enable logic, preset mapping, reload trigger
- Options: save/load shadowsmooth/shadowfilterradius/shadowfiltercascades to options_ov.cfg - UI: tlpShadows row 6 Smooth shadow [x] [Low/Medium/High] + auto-enable logic, preset mapping
… show shadow acne
…ract filter radius
23392e3 to
9f2f47e
Compare
|
@leezer3 i think this one done too. Ready to merge |


Make the edge of the shadow smooth, more noticeable on low resolution shadow (512px) + far shadow range.
Using vogel disk and interleaved gradient noise.
before:

after:

need more test...