mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:43:50 +02:00
Problem not fixed yet, need to merge with upstream
This commit is contained in:
parent
227ddb12a6
commit
d189dc4af2
1 changed files with 3 additions and 3 deletions
|
@ -114,9 +114,9 @@ vec3 fetchLightmapMap(vec2 uv) {
|
|||
|
||||
<@func evalMaterialOpacity(fetchedOpacity, materialOpacity, matKey, opacity)@>
|
||||
{
|
||||
const float OPACITY_MASK_THRESHOLD = 0.5;
|
||||
<$opacity$> = (((<$matKey$> & (OPACITY_TRANSLUCENCY_MAP_BIT | OPACITY_MASK_MAP_BIT)) != 0) ?
|
||||
(((<$matKey$> & OPACITY_MASK_MAP_BIT) != 0) ? step(OPACITY_MASK_THRESHOLD, <$fetchedOpacity$>) : <$fetchedOpacity$>) :
|
||||
const float OPACITY_MASK_THRESHOLD = 0.95;
|
||||
<$opacity$> = (((<$matKey$> & (OPACITY_TRANSLUCENT_MAP_BIT | OPACITY_MASK_MAP_BIT)) != 0) ?
|
||||
(((<$matKey$> & OPACITY_MASK_MAP_BIT) != 0) ? step(<$fetchedOpacity$>, OPACITY_MASK_THRESHOLD) : <$fetchedOpacity$>) :
|
||||
1.0) * <$materialOpacity$>;
|
||||
}
|
||||
<@endfunc@>
|
||||
|
|
Loading…
Reference in a new issue