Search Unity

Shadow Material with Projector

Discussion in 'Shaders' started by Deleted User, Oct 3, 2010.

  1. Deleted User

    Deleted User

    Guest

    Hello,

    Hey someone tried to use the projector to apply the shadow material?

    there is no more shadow material on v3.
    and the projector when you use it, this will apply on the entire meshes, not in a specific area.

    any feed about this :)

    thanks,
    Deo
     
  2. Slem

    Slem

    Joined:
    Jan 28, 2009
    Posts:
    191
    I want to know this too. Apparently in the docs it says you need to set the texturemode to Clamp and not repeat, but that does nothing.
     
  3. Bezzy

    Bezzy

    Joined:
    Apr 1, 2009
    Posts:
    75
    I've found that it's important to set your falloff texture to stop the projection either "bleeding" (clamped texture) or "tiling" (wrap texture) (essentially just an alpha zero outline). Otherwise, whatever objects are "touched" get drawn on all over, as opposed to just where you want them.

    I haven't however, figured out how to stop the texture drawing on back faces relative to the projector (i.e. shadows from the projected texture).