diff options
author | Erik Kundiman <erik@megapahit.org> | 2023-10-06 07:32:03 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2023-10-06 07:32:03 +0800 |
commit | 1c51cc63ffb8d93a0cdacef7cb2966d245d843de (patch) | |
tree | 76154d4216bf83ff501afc7c494a62bf57aff435 /indra/newview/llvovolume.cpp | |
parent | 8ce712f3ba80d2888b3bfb6d306b6c803c2e56bf (diff) | |
parent | b6109a0da5be5f6fdbdd8647dda0b2a8d54928d6 (diff) |
Merge remote-tracking branch 'secondlife/DRTVWR-559' into DRTVWR-559
Diffstat (limited to 'indra/newview/llvovolume.cpp')
-rw-r--r-- | indra/newview/llvovolume.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index 0d8c2273b1..ea8527c001 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -4617,7 +4617,7 @@ BOOL LLVOVolume::lineSegmentIntersect(const LLVector4a& start, const LLVector4a& if (!pick_unselectable) { - if (!LLSelectMgr::instance().canSelectObject(this)) + if (!LLSelectMgr::instance().canSelectObject(this, TRUE)) { return FALSE; } @@ -5856,7 +5856,16 @@ void LLVolumeGeometryManager::rebuildGeom(LLSpatialGroup* group) } else { - if (te->getColor().mV[3] > 0.f || te->getGlow() > 0.f) + F32 alpha; + if (is_pbr) + { + alpha = gltf_mat ? gltf_mat->mBaseColor.mV[3] : 1.0; + } + else + { + alpha = te->getColor().mV[3]; + } + if (alpha > 0.f || te->getGlow() > 0.f) { //only treat as alpha in the pipeline if < 100% transparent drawablep->setState(LLDrawable::HAS_ALPHA); add_face(sAlphaFaces, alpha_count, facep); |