Need help with mimicking Unity's Transparent Fade shader (example)


(AlmaTalp) #1

Hello,

I’m working on a shader mimicking parts of the the Unity’s Transparent Fade shader, but now I have a problem.
When I switch off shadow casting, also it switches off emission on the environment.

It allows:

  • 1-sided or 2-sided material (done)
  • Emission (done)
  • Cast shadow or not (Transparent Cutout or Transparent Fade) It has the error.


Blend file: https://ufile.io/hn5x9

Thanks for the ideas/help!