mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-01 02:09:43 +00:00
Use different colors for walkable and non-walkable triangles
This commit is contained in:
parent
b61140b8ba
commit
daff7aba01
1 changed files with 2 additions and 2 deletions
|
@ -64,8 +64,8 @@ namespace SceneUtil
|
|||
|
||||
const auto normals = calculateNormals(vertices, indices);
|
||||
const auto texScale = 1.0f / (settings.mCellSize * 10.0f);
|
||||
duDebugDrawTriMesh(&debugDraw, vertices.data(), static_cast<int>(vertices.size() / 3),
|
||||
indices.data(), normals.data(), static_cast<int>(indices.size() / 3), nullptr, texScale);
|
||||
duDebugDrawTriMeshSlope(&debugDraw, vertices.data(), static_cast<int>(vertices.size() / 3),
|
||||
indices.data(), normals.data(), static_cast<int>(indices.size() / 3), settings.mMaxSlope, texScale);
|
||||
|
||||
osg::ref_ptr<osg::Material> material = new osg::Material;
|
||||
material->setColorMode(osg::Material::AMBIENT_AND_DIFFUSE);
|
||||
|
|
Loading…
Reference in a new issue