- Home /
Question by
MaximumTre · May 20, 2019 at 01:40 PM ·
lightingshaders
Is it possible to force a shader to use a specific light for calculations
I am using this really nice Earth asset I found in the Asset Store that has this functionality where it shows a night view of the planet with city lights etc, and where the light touches it looks as you would expect. The only thing is, ANY other lights in the scene will screw up this effect and make the globe flicker. I want to know is it possible to force the shader to use a specific light, such as a Directional light I can pass in as a parameter to the Material or something. I don't know much about shader programming, and wanted to ask this before I attempt to edit this shader in any way to make sure I won't waste time on this.
Comment