asny / three-d

2D/3D renderer - makes it simple to draw stuff across platforms (including web)
MIT License
1.24k stars 105 forks source link

Lighting: Adjust shadow bias based on normal and light direction to reduce shadow acne #389

Closed BonsaiDen closed 11 months ago

BonsaiDen commented 11 months ago

Hey there,

just minor improvement based on techniques mentioned in this article: https://learnopengl.com/Advanced-Lighting/Shadows/Shadow-Mapping

Before Screenshot at 2023-08-03 22-26-01

After

Screenshot at 2023-08-03 22-25-07

Best regards

asny commented 11 months ago

Looks great! Thanks for the contribution 🙏