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
...@@ -171,7 +171,7 @@ void FileHeightFieldPNGPlugin::loadImageAsTriangleMesh(QImage& _image,TriMesh* _ ...@@ -171,7 +171,7 @@ void FileHeightFieldPNGPlugin::loadImageAsTriangleMesh(QImage& _image,TriMesh* _
double value = std::max(currentColor.redF(),currentColor.blueF()); double value = std::max(currentColor.redF(),currentColor.blueF());
value = std::max(currentColor.greenF(),value); value = std::max(currentColor.greenF(),value);
TriMesh::VertexHandle vh = _mesh->add_vertex(TriMesh::Point(i,j,-value * _height)); 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));
} }
} }
......
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