fix: reduce default shadow bias to 0.01 — minimal acne with back-face culling
Back-face culling eliminated most self-shadowing, so bias can be much lower. Default 0.01 (was 0.08). Slider still allows 0.001-0.5 tuning.
This commit is contained in:
@@ -24,7 +24,7 @@ public sealed unsafe class VulkanRenderer : IRenderer, Engine.Graphics.IScreensh
|
|||||||
private string? _screenshotPath;
|
private string? _screenshotPath;
|
||||||
private float _totalTime;
|
private float _totalTime;
|
||||||
|
|
||||||
public float ShadowBias { get; set; } = 0.08f;
|
public float ShadowBias { get; set; } = 0.01f;
|
||||||
public float ShadowSampleRadius { get; set; } = 0.015f;
|
public float ShadowSampleRadius { get; set; } = 0.015f;
|
||||||
public float ShadowFarPlane { get; set; } = 60.0f;
|
public float ShadowFarPlane { get; set; } = 60.0f;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user