Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Shader bug or feature?

Discussion in 'Unity 5 Pre-order Beta' started by juffowup, Oct 30, 2014.

  1. juffowup


    May 10, 2014
    I found a shader in forums that makes an invisible object cast a shadow. Works great in version 4, doesn't work in version 5. In 5 the object just appears purple. The shader code itself is very short so I was wondering if somebody who knows shaders better could tell what the problem is. Is this a bug in version 5 or something that is no longer supported?

    Code (CSharp):
    1. Shader "Transparent/InvisibleShadowCaster"
    2. {
    3.      Subshader
    4.      {
    5.          UsePass "VertexLit/SHADOWCOLLECTOR"  
    6.          UsePass "VertexLit/SHADOWCASTER"
    7.      }
    8.      Fallback off
    9. }
    shkar-noori likes this.