mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
refactor and fix wobbly shores
This commit is contained in:
parent
cad0b151cb
commit
09e03fde2e
45 changed files with 256 additions and 239 deletions
|
@ -1,6 +1,7 @@
|
|||
#include "pathgridutil.hpp"
|
||||
|
||||
#include <osg/Geometry>
|
||||
#include <osg/Material>
|
||||
|
||||
#include <components/esm/loadpgrd.hpp>
|
||||
|
||||
|
@ -174,6 +175,11 @@ namespace SceneUtil
|
|||
gridGeometry->addPrimitiveSet(lineIndices);
|
||||
gridGeometry->getOrCreateStateSet()->setMode(GL_LIGHTING, osg::StateAttribute::OFF);
|
||||
}
|
||||
|
||||
osg::ref_ptr<osg::Material> material = new osg::Material;
|
||||
material->setColorMode(osg::Material::AMBIENT_AND_DIFFUSE);
|
||||
gridGeometry->getOrCreateStateSet()->setAttribute(material);
|
||||
|
||||
return gridGeometry;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue