Is there a way to tell a point light only to apply to specific Object(s)

Hi,

I am trying to reduce the point light load in my project and was wondering if there is a way to tell a point light to only effect certain object(s) Meshes.

I am aware of the culling mask for layers but this is to generic for what I am working on.

Any ideas?

Edit: I have managed to find this question, that states it isn’t. Has this changed at all with Unity4?

Thanks

Paul

No, nothing has changed on that :wink: Keep in mind that lights are only positions in space. Those positions are fed into the shader which will calculate the shading of the object according to the position and light properties.

Layers are an easy way to define interactions between different objects because a layermask test is very simple. What you want would require every object to keep a list of all light references so the object knows which lights it should use.

Your only option, when you can’t / don’t want to use layers, is to write your own shaders and do this manually (hold a list of lights and feed them into shader variables manually each update).