You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A while ago I did hack my way on a custom threejs of the webGLRenderer to render both baked and real time lighting,
And I found out really useful to determine / selecting if a light should contribute of the color lighting output, or cast shadow only and only contributes to the shadow mapping
Example for a scene, let say you have two directional lights :
1 used for baking shadows globally and for lighting color contribution
1 used for real time shadowing, but this one should not contribute to the color lighting as it would add up a second contribution, and on top affecting perfs since one light is only needed for the lighting color contribution
Solution
Maybe adding an boolean property to toggle off the color contribution ?
Additional context
No response
The text was updated successfully, but these errors were encountered:
Samsy
changed the title
Select if a directional light should contributes to the lighting color contribution, or to a shadow map only
Select if a directional light should contributes to the lighting color contribution, or to a shadow map only ( real time shadowing )
Dec 10, 2024
Samsy
changed the title
Select if a directional light should contributes to the lighting color contribution, or to a shadow map only ( real time shadowing )
Select if a directional light should contribute to the lighting color contribution, or to a shadow map only ( real time shadowing )
Dec 10, 2024
Description
A while ago I did hack my way on a custom threejs of the webGLRenderer to render both baked and real time lighting,
And I found out really useful to determine / selecting if a light should contribute of the color lighting output, or cast shadow only and only contributes to the shadow mapping
Example for a scene, let say you have two directional lights :
1 used for baking shadows globally and for lighting color contribution
1 used for real time shadowing, but this one should not contribute to the color lighting as it would add up a second contribution, and on top affecting perfs since one light is only needed for the lighting color contribution
Solution
Maybe adding an boolean property to toggle off the color contribution ?
Additional context
No response
The text was updated successfully, but these errors were encountered: