Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Custom Shader not receiving shadows

Discussion in 'Shaders' started by Rob-Reijnen, Feb 8, 2016.

  1. Rob-Reijnen

    Rob-Reijnen

    Joined:
    Oct 14, 2013
    Posts:
    60
    I`ve got this free translucent shader from the internet. Now I`m having this problem with receiving shadows.
    The shader does not receive shadows from a point light, but works perfectly with a directional light.
    While build-in shaders are working fine with both.

    I`ve provided this image, as you can see the light is blocked by the wall on the left. So my object on the right should be in darkness.


    This is giving me a real headache, I`ve got the same problem with some other custom shader.

    Using unity 5.1 if that`s even relevant.



    If you`re interested in this shader, it can be found here:
    http://farfarer.com/blog/2012/09/11/translucent-shader-unity3d/