Pherael
Member
|
Lighting channels/ ignoring lightings
I wonder if it is possible to have different objects affected by different lights. Like having all the objects inside tavern using one source of light, and all objects outside using another one. I trying to have lighten tavern durring the night, but using multiple lights source kill performance. Especially on Xbox.
How hard it would be to add to esenthel? Or it would be possible to make it with custom shader?
|
|
02-28-2019 12:55 PM |
|
RedcrowProd
Member
|
RE: Lighting channels/ ignoring lightings
(This post was last modified: 03-01-2019 05:13 AM by RedcrowProd.)
|
|
03-01-2019 01:36 AM |
|
Esenthel
Administrator
|
RE: Lighting channels/ ignoring lightings
Can't do that in deferred renderer. But can in forward.
However for forward currently you have to draw all objects for main directional light. But for secondary lights (just don't draw them inside Renderer function inside RM_PREPARE You can check LightCur.src to check which light is currently rendered )
|
|
03-06-2019 06:40 AM |
|