History

Allow specifying material opacity.

Andrzej Kapolka committed 12 years ago

Commit fbd1efa1 parent 7b3f61d18 files · +48 −36Browse files

Showing the changes to interface/src/renderer/GeometryCache.cpp (1 of 18 files). Show all

Unified · Split

interface/src/renderer/GeometryCache.cpp+3−3
@@ -684,10 +684,10 @@ bool NetworkMeshPart::isTranslucent() const { · 683 unmodified lines
684 return diffuseTexture && diffuseTexture->isTranslucent();684 return diffuseTexture && diffuseTexture->isTranslucent();
685}685}
686 686
687int NetworkMesh::getTranslucentPartCount() const {687int NetworkMesh::getTranslucentPartCount(const FBXMesh& fbxMesh) const {
688 int count = 0;688 int count = 0;
689 foreach (const NetworkMeshPart& part, parts) {689 for (int i = 0; i < parts.size(); i++) {
690 if (part.isTranslucent()) {690 if (parts.at(i).isTranslucent() || fbxMesh.parts.at(i).opacity != 1.0f) {
691 count++;691 count++;
692 }692 }
693 }693 }