- Home /
how to make a single object lit differently by 2 lights source of same kind
I have a customized shader for spot light, and I use this shader to render one object, there are multiple spot lights, and I want the shader to work differently with respect to different spot light source, how can I do it? with OpenGL, I could do it through different shader programs, rendering the object with respect to a light source with different shader program, and blending every resulting image into one. not an idea how to achieve it with unity.
Your answer
![](https://koobas.hobune.stream/wayback/20220612140819im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Switching shader Lighting On/Off from script 1 Answer
Is Vertex Lighting still computed if no lights are in the scene? 0 Answers
[ShaderGraph] How can I prevent lights overlapping in intensity? 0 Answers
Implementing Custom Vertex Lighting Shader 1 Answer
How do I keep an object lit when a light moves past it? 0 Answers