Put the ocean tile state set in osg::Geometry, not the osg::Geode, so that
is readily available during intersection testing and can be used to find the
corresponding SGMaterial.
Problem reported by grtux (gh.robin@laposte.net)
+ 2 * (latPoints - 1)));
fillDrawElementsWithApron(latPoints, lonPoints, drawElements->begin());
geometry->addPrimitiveSet(drawElements);
+ geometry->setStateSet(stateSet);
osg::Geode* geode = new osg::Geode;
geode->setName("Ocean tile");
geode->addDrawable(geometry);
- geode->setStateSet(stateSet);
osg::MatrixTransform* transform = new osg::MatrixTransform;
transform->setName("Ocean");