PanosK92 / SpartanEngine

A game engine with an emphasis on real-time cutting-edge solutions
https://panoskarabelas.com
MIT License
2.24k stars 189 forks source link

Improve screen space subsurface scattering for vegetation #126

Open PanosK92 opened 12 months ago

PanosK92 commented 12 months ago

We currently have a basic implementation of screen space subsurface scattering (SSS) specifically designed for vegetation. While it serves its fundamental purpose, there's significant room for improvement. This issue aims to explore ways to enhance our current SSS approach, making it more robust and visually appealing.

Without sss: Screenshot 2023-12-01 043438

With the existing sss: 2

Source: https://github.com/PanosK92/SpartanEngine/blob/master/data/shaders/light.hlsl

PanosK92 commented 7 months ago

The engine is now aware of surface thickness for subsurface scattering enabled meshes