<div dir="ltr">Well, the FFP material state info doesn't exist in ES 2.0. So, it's getting skipped.<div><br></div><div>You need to write a visitor that traverses your model converting OSG Material class attributes into Uniforms that your shaders then read and understand and react to.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 25, 2015 at 11:12 AM, Şan Güneş <span dir="ltr"><<a href="mailto:sgunes@350.su" target="_blank">sgunes@350.su</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I'm playing around with OpenSceneGraph with OpenGL ES 2.0. I managed to<br>
show some primitives, and later a model that I loaded with osgDB.<br>
However at the moment I'm assigning a random color to the gl_FragColor<br>
in the fragment shader. When doing this I'm getting the following warning:<br>
<br>
> Warning: Material::apply(State&) - not supported.<br>
<br>
I'm confused about how I should write the shaders if I load a model with<br>
osgDB in order to show it together with it's texture. So far I couldn't<br>
find any OpenSceneGraph related example for this. I would appreciate any<br>
help and tips.<br>
<br>
Thanks<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">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><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><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">Code Forensics •</span><span style="font-size:12.8000001907349px"> </span>Digital Imaging • GIS • GPS • osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile • iPhone/iPad/iOS • Android</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]</div></div></div></div></div>
</div>