- Home /
Blob shadow changes transparency
Unity 3.4 - I have a blob shadow projector positioned over a vehicle. Both are childs of the same object, so the blob shadow follows the vehicle around the scene. The projector ignores all layers except for the terrain. The shader is 'FX/Projector Multiply' with two Photoshop files defining the 'Cookie' and 'Falloff'. There is one 'Point Light' in the scene.
However, as the vehicle moves around the scene, the shadow unexpectedly changes transparency in a limited number of certain areas and viewpoints - it is as if there are two transparency values defined for the shadow, and it occasionally flips to the lighter value. This occurs in both the editor and the player. The shadow worked fine in 2.6, so I'm not sure what is going on. Should the shadow change?
.
Answer by BigHippo · Aug 05, 2011 at 09:42 PM
Thanks, I used the 'Blob Shadow Projector.prefab', which is a 'Standard Asset' and uses the 'Projector/Multiply' shader. I did some additional checking and it appears I had changed a few values in Tags {}, and that change was apparently causing the shadow to be rendered twice in 3.4. I reverted to the default Tags { "RenderType"="Transparent-1" } and that fixed the issue.
Answer by roamcel · Aug 05, 2011 at 09:00 AM
I am not sure that using a multiply shader is the best way to implement the blob shadow. Is there a particular reason you're choosing multiply, especially since you're asking the proj to ignore other layers? The most straightforward way to implement the blob shadow is to choose 'projector/decal', rather than multiply, I believe.
where is projector/decal? can't seem to find it anywhere.
Your answer
Follow this Question
Related Questions
How do you make blob shadow ignore sphere? 1 Answer
How to make a blob shadow project from a fixed angle as the object rotates? 2 Answers
Blob Shadows - Reversing Shadow Effect? 2 Answers
Blob shadow projector is not projecting properly 2 Answers
[Unity3D 3.5.6f4] Get rid of shadow projector artefact 1 Answer