Re: [osg-users] OpenGL ES 2.0 and LIGHTING

2018-11-12 Thread Grigoriy Mylnikov
Hi, 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? if not, where can I get some shaders/shader generator to start with? I'm new in shaders. Thank you! Cheers, Grigoriy -

Re: [osg-users] OpenGL ES 2.0 and LIGHTING

2018-11-12 Thread Chris Hanson
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. 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

Re: [osg-users] Switch between primitive and model

2018-11-12 Thread Ulrich Hertlein
Hi Charlie, On 12/11/18 03:26, Charlie Tan wrote: > I am trying to toggle between a model that I have loaded (a unit cube) and a > colored surface (a unit triangle). Thus, the triangle rendered should be half > the area of the unit cube's face. In addition, the triangle rendered should > lie on