EntroPi-Games / Unity-Cloud-Shadows

Animated cloud shadows asset for Unity
Apache License 2.0
202 stars 30 forks source link

Does not work in Unity 2020.3 #3

Closed farazk86 closed 12 months ago

farazk86 commented 2 years ago

Thank you for providing this asset :)

I want to add it to my game but unfortunately its not working.

I've followed the instructions in the pdf, which are simple enough to add your Cloud Shadows component to the directional light and ensure that the light is rendered in real time.

But the clouds dont appear in my scene. It just darkens my scene similar to how I would set the coverage to max in your demo.

Any idea why it may not be working?

Thanks

EntroPiGames commented 2 years ago

Are you using the built-in renderer or one of the new render pipelines (URP, HDRP)?

farazk86 commented 2 years ago

Are you using the built-in renderer or one of the new render pipelines (URP, HDRP)?

built in renderer

farazk86 commented 2 years ago

Just to add some screenshots to help explain the issue.

This is what it looks like without the component

Unity_qoNessuMMn

This is what it looks like after adding the component

Unity_xJXu9D1Kmz

And here is the directional light gameobject with the Cloud Shadows attached

image_2021-09-30_135251

Also, as suggested in documentation I am using Forward rendering path

Any idea what may be the problem or how I can fix this?

EntroPiGames commented 2 years ago

Are you using any custom shaders in your project?

farazk86 commented 2 years ago

Are you using any custom shaders in your project?

just the standard pipeline and no custom shaders in scene

Radivarig commented 2 years ago

Try replacing color.a = with color.rgba = in the shader like here.

farazk86 commented 1 year ago

So after all this time I came back to my previous project and tried the clouds again and I figures=d out why it didnt work.

My ground material was using the Mobile/Diffuse shader instead of the Standard shader. Changing it to standard made the clouds show up...

so yeah.. my bad all along, but this was never mentioned in the documentation..