Skip to content
Snippets Groups Projects
Commit e05dcfa4 authored by Jan Möbius's avatar Jan Möbius
Browse files

Missing alpha value

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@20213 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 9b0dc269
No related branches found
No related tags found
No related merge requests found
......@@ -171,7 +171,7 @@ void FileHeightFieldPNGPlugin::loadImageAsTriangleMesh(QImage& _image,TriMesh* _
double value = std::max(currentColor.redF(),currentColor.blueF());
value = std::max(currentColor.greenF(),value);
TriMesh::VertexHandle vh = _mesh->add_vertex(TriMesh::Point(i,j,-value * _height));
_mesh->set_color(vh,TriMesh::Color(currentColor.redF(),currentColor.greenF(),currentColor.blueF()));
_mesh->set_color(vh,TriMesh::Color(currentColor.redF(),currentColor.greenF(),currentColor.blueF(),1.0f));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment