<div dir="ltr">I think the osgUtil/ShaderGen code might be GLES2 compatible now. Try running it on your model, and dump the shader that it creates to see if it's creating Uniforms for lighting or not.<div><br></div><div>It might or might not be using the osg::Light as a basis. Do you HAVE to use osg::Light or could you get by with some light Uniforms?</div><div><br></div><div>Describe to us your lighting requirements better and maybe we can suggest solutions.</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Nov 12, 2018 at 1:45 PM Grigoriy Mylnikov <<a href="mailto:digitalw0lf@yandex.ru">digitalw0lf@yandex.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Is this issue solved in OSG somehow? I need to use some basic lighting on Android (GLESv3). It should use parameters from osg::Light. Are there any ready-made solutions?<br>
if not, where can I get some shaders/shader generator to start with? I'm new in shaders.<br>
<br>
Thank you!<br>
<br>
Cheers,<br>
Grigoriy<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=75183#75183" rel="noreferrer" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=75183#75183</a><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div style="text-align:center">Chris 'Xenon' Hanson, omo sanza lettere. Xenon@AlphaPixel.com <a href="http://www.alphapixel.com/" target="_blank">http://www.alphapixel.com/</a></div><div style="text-align:center">Training • Consulting • Contracting</div><div style="text-align:center">3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL</div><div style="text-align:center"><span style="font-size:12.8000001907349px">Legal/IP •</span><span style="font-size:12.8000001907349px"> </span><span style="font-size:12.8000001907349px">Forensics •</span><span style="font-size:12.8000001907349px"> </span>Imaging <span style="font-size:12.8px">•</span><span style="font-size:12.8px"> </span><span style="font-size:12.8px">UAVs </span><span style="font-size:12.8px">• GIS • GPS • osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile • iPhone/iPad/iOS • Android</span></div><div style="text-align:center"><a href="https://twitter.com/alphapixel" target="_blank">@alphapixel</a> <a href="http://facebook.com/alphapixel" target="_blank">facebook.com/alphapixel</a> (775) 623-PIXL [7495]<br></div></div></div></div></div></div>