mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
fade wireframes
This commit is contained in:
parent
313ba87fce
commit
ae0b9ea9a3
1 changed files with 2 additions and 2 deletions
|
@ -438,7 +438,7 @@ ShapeKey ModelMeshPartPayload::getShapeKey() const {
|
|||
drawMaterialKey = _drawMaterial->getKey();
|
||||
}
|
||||
|
||||
bool isTranslucent = drawMaterialKey.isTranslucent() || calcFadeRatio() < 1.0f;
|
||||
bool isTranslucent = drawMaterialKey.isTranslucent();
|
||||
bool hasTangents = drawMaterialKey.isNormalMap() && !mesh.tangents.isEmpty();
|
||||
bool hasSpecular = drawMaterialKey.isMetallicMap();
|
||||
bool hasLightmap = drawMaterialKey.isLightmapMap();
|
||||
|
@ -452,7 +452,7 @@ ShapeKey ModelMeshPartPayload::getShapeKey() const {
|
|||
}
|
||||
|
||||
ShapeKey::Builder builder;
|
||||
if (isTranslucent) {
|
||||
if (isTranslucent || calcFadeRatio() < 0.9f) {
|
||||
builder.withTranslucent();
|
||||
}
|
||||
if (hasTangents) {
|
||||
|
|
Loading…
Reference in a new issue