FastShadowReceiver/Projector/Multiply
FastShadowReceiver/Projector/Multiply Without Falloff

These shaders are similar to “Projector/Multiply Shadow” shader which is included in Standard Assets (Projectors). The difference is both of the FashShadowReceiver shaders have “Shadow Darkness” property to control shadow darkness.

“FastShadowReceiver/Projector/Multiply” have FallOff texture like “Projector/Multiply Shadow” shader (the left image). On the other hand, “FastShadowReceiver/Projector/Multiply Without Falloff” doesn’t have FallOff texture. So, the shadow which is far from the projector is still dark (the right image), and this shader is faster than the others.

screenshot-multiply screenshot_multiply_nofalloff

 

FastShadowReceiver/Projector/Multiply Diffuse
FastShadowReceiver/Projector/Multiply Diffuse Without Falloff

These shaders take into account normal vectors of a surface like diffuse lighting so that shadows can be more realistic. Also, these shaders can avoid the backside projection problem whereby a shadow is projected on a surface which is not facing to the projector.

These shaders require normal vectors. Don’t forget to check ‘Has Normals’ property in MeshShadowReceiver if any.

screenshot_multiply_diffuse screenshot-multiply_diffuse_nofalloff

 

FastShadowReceiver/Projector/Visualize Receiver

This shader is used for debug purpose. It can visualize meshes which are receiving a shadow from the projector.

screenshot_visualize

Links

One thought on “Projector Shaders

  • 2017/06/10 at 4:40 PM
    Permalink

    A shader to add light to objects could be used to project any image onto other objects, similarly to an overhead projector or a movie projector.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Anti Spam Code *