Search Unity

AlphaVertexLitZ + Pixel Light Pass?

Discussion in 'Shaders' started by datadreamer, Oct 14, 2010.

  1. datadreamer

    datadreamer

    Joined:
    Jun 3, 2010
    Posts:
    88
    I want to be able to use the AlphaVertexLitZ shader from the Unify Community wiki to be able to cleanly fade my characters in and out of the scene. However, I'm using a spotlight which rotates to point at the latest character to be created in order to cast some shadows and create dramatic lighting conditions across the characters body. I've been attempting to add an additional pixel light pass to the AlphaVertextLitZ shader in order to add these features, but have been having no luck.

    I tried using the Transparent-Diffuse shader that is built in, and it looks terrible. I can see all of the different objects that comprise my character coming through where they're not supposed to, and it also doesn't cast a shadow.

    Below is a comparison of the shaders under the spotlight, with AlphaVertextLitZ on the left and Normal-Diffuse on the right (ignore the clothing color difference, as it's randomly assigned each time the character is created).
     

    Attached Files:

    Last edited: Oct 14, 2010
  2. datadreamer

    datadreamer

    Joined:
    Jun 3, 2010
    Posts:
    88