wave-harmonic / crest

A class-leading water system implemented in Unity
MIT License
3.49k stars 478 forks source link

Directional Light Cookies #998

Open Myterian opened 2 years ago

Myterian commented 2 years ago

Hi, currently the sun refelction get removed as soon as the directional light uses a cookie. Would it be possible to include the directional light cookie to the oceans reflection or at least have the default behaviour, seen in the first picture, when using cookies?

crest1 crest2

Myterian commented 2 years ago

Btw this is using the BIRP and the cookies are used to fake cloud shadows

daleeidd commented 2 years ago

It will be a while before we can look at supporting this, but as a workaround have two lights and use the culling mask to apply one of the lights with a cookie to the water layer only and you will get normal behaviour again.