On Tue, Aug 7, 2012 at 10:23 AM, Sergey Polischuk <[email protected]> wrote:
> In gles 2.0 shaders dont have builtins like gl_MultiTexCoord gl_Color > gl_FrontColor\gl_BackColor gl_TexCoord gl_FragColor etc, and ftransform > too. Check gles 2.0 spec. > Use your own varyings and attributes, use your own output from fragment > shader(and dont forget to bind stuff in osg::Program). You should consider using the GLES2-capable shadergen code in Thomas Hogarth's Hogbox library. We've used it recently in several projects. It has a shader built in that supports bump mapping on GLES2. -- Chris 'Xenon' Hanson, omo sanza lettere. [email protected] 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 Digital Imaging • GIS • GPS • Telemetry • Cryptography • Digital Audio • LIDAR • Kinect • Embedded • Mobile • iPhone/iPad/iOS • Android
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

