[osg-users] More lights in scene!

Robert Osfield robert.osfield at gmail.com
Mon Oct 24 07:23:35 PDT 2016

HI Nickolai,

On 24 October 2016 at 11:37, Nickolai Medvedev <raizel.dev at yandex.ru> wrote:
> If we need diffuse lighting, we need get color of the scene, send him into shader as uniform, then, for example, if we need point light, add color with radius.
> So, question is: how to get our scene color? Need create light shader for each light?

I really don't know what exactly you mean.  Are you already using
shaders for lighting?  Using old OpenGL fixed function for lighting?

What you mean by colour of the scene?  The colour of the light source?
 The colour of the surface geometry of objects in the scene?

I really can't provide answers to open ended questions.


More information about the osg-users mailing list