[osg-users] OpenGL ES 2.0 and LIGHTING

Chris Hanson xenon at alphapixel.com
Mon Nov 19 12:26:33 PST 2018


Let me check with Thomas.

On Mon, Nov 19, 2018 at 5:46 PM Grigoriy Mylnikov <digitalw0lf at yandex.ru>
wrote:

> At the moment, I implemented ShaderLight class that extends osg::Light and
> allows to use several point lights with per-pixel lighting (using my
> shaders). It works on android emulator.
>
> I'm not sure about where is a best place to add that lights' uniforms to
> scene graph (e.g. rootStateSet->addUniform(myLight0->positionUniform); ).
> For now, I just call it after creating every light. I think ShaderLight
> object should do it itself, but how can it get a StateSet to which uniforms
> should be added?
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=75213#75213
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>


-- 
Chris 'Xenon' Hanson, omo sanza lettere. Xenon at AlphaPixel.com
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Forensics • Imaging • UAVs • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
iPhone/iPad/iOS • Android
@alphapixel <https://twitter.com/alphapixel> facebook.com/alphapixel (775)
623-PIXL [7495]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20181119/dab5f32a/attachment.html>


More information about the osg-users mailing list