I am curioust about one theme: Say that I have complex scene
and one light, I can draw scene in parts by sending draw commands
sequentuially (for example in 100 steps).
Can I move the light between sequential calls ? For example i
would draw table vith light0 close to it then move light0 to
wall then draw wall then move light0 to chair then draw chair.
It would be then somewhat like assembly of it all It is legal
ot it will not work and each whole frame should have one light in
one position? (Same question would also be for other attributes )
tnx
Of corse you can. Light position is just a variable that you pass to object shader like this:
Its a shader with texture and one infinitely distant poin light.
If you need to move a light source between objects render its easy like changing variable value.