Commit 0daa388f authored by Pavel Rojtberg's avatar Pavel Rojtberg

ovis: createPointCloudMesh - allow texturing the points (point sprites)

parent d71f31b9
...@@ -44,6 +44,7 @@ void createPointCloudMesh(const String& name, InputArray vertices, InputArray co ...@@ -44,6 +44,7 @@ void createPointCloudMesh(const String& name, InputArray vertices, InputArray co
MaterialPtr mat = MaterialManager::getSingleton().create(name, RESOURCEGROUP_NAME); MaterialPtr mat = MaterialManager::getSingleton().create(name, RESOURCEGROUP_NAME);
Pass* rpass = mat->getTechniques()[0]->getPasses()[0]; Pass* rpass = mat->getTechniques()[0]->getPasses()[0];
rpass->setEmissive(ColourValue::White); rpass->setEmissive(ColourValue::White);
rpass->setPointSpritesEnabled(true);
// mesh // mesh
MeshPtr mesh = MeshManager::getSingleton().createManual(name, RESOURCEGROUP_NAME); MeshPtr mesh = MeshManager::getSingleton().createManual(name, RESOURCEGROUP_NAME);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment