Part: Remove transparency cap at 50% for face color override
This commit is contained in:
committed by
Chris Hennes
parent
28e1a3b654
commit
a906d34eea
@@ -722,7 +722,7 @@ bool SoBrepFaceSet::overrideMaterialBinding(SoGLRenderAction *action, SelContext
|
||||
for(int i=0;i<trans_size;++i) {
|
||||
if(trans[i]!=0.0) {
|
||||
hasTransparency = true;
|
||||
trans0 = trans[i]>0.5?0.5:trans[i];
|
||||
trans0 = trans[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -755,13 +755,14 @@ bool SoBrepFaceSet::overrideMaterialBinding(SoGLRenderAction *action, SelContext
|
||||
|
||||
if(ctx && Gui::Selection().needPickedList()) {
|
||||
hasTransparency = true;
|
||||
if(trans0 < 0.5)
|
||||
trans0=0.5;
|
||||
trans_size = 1;
|
||||
if(ctx2)
|
||||
if(ctx2) {
|
||||
ctx2->trans0 = trans0;
|
||||
}else if(ctx2)
|
||||
}
|
||||
}
|
||||
else if(ctx2) {
|
||||
ctx2->trans0 = 0.0;
|
||||
}
|
||||
|
||||
uint32_t diffuseColor = diffuse[0].getPackedValue(trans0);
|
||||
int singleColor = 0;
|
||||
|
||||
Reference in New Issue
Block a user