bruneton-sky-model icon indicating copy to clipboard operation
bruneton-sky-model copied to clipboard

No shadow effect

Open Ain-Crad opened this issue 3 years ago • 2 comments

Hey, it seems that there is no shadow effect in the demo, any idea to implement this?

Ain-Crad avatar May 20 '21 02:05 Ain-Crad

For shadows you’d have to resort to something like cascaded shadow maps or ray traced shadows since it’s beyond the scope of this particular sky model :D

diharaw avatar May 20 '21 08:05 diharaw

For shadows you’d have to resort to something like cascaded shadow maps or ray traced shadows since it’s beyond the scope of this particular sky model :D

Hi, thanks for the reply. Haven't read through the code, but could you give me some hints on how to convert the ray trace to rasterization based on Erics's project. Eric's demo shader is specific for sphere render which is not easy to expand to render other objects and maybe very slow thus can't be real-time when there are other more complex objects.

Ain-Crad avatar May 20 '21 10:05 Ain-Crad