while i was browsing the panda3d manual about lights and lighting
(here http://www.panda3d.org/manual/index.php?title=Lighting&language=cxx )
I was wondering why we have to attach the light to the scene like shown in the example.
PT(DirectionalLight) d_light; d_light = new DirectionalLight("my d_light"); NodePath dlnp = window->get_render().attach_new_node(d_light);
but we still got to tell each object (or root nodes) which iights affect the objects(nodes)
how come the light needs to be added to the scene graph at all ? (this question is out of curiosity about how the panda scene graph interacts with lights )