mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 19:16:56 +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)@>
|
<@func evalMaterialOpacity(fetchedOpacity, materialOpacity, matKey, opacity)@>
|
||||||
{
|
{
|
||||||
const float OPACITY_MASK_THRESHOLD = 0.5;
|
const float OPACITY_MASK_THRESHOLD = 0.95;
|
||||||
<$opacity$> = (((<$matKey$> & (OPACITY_TRANSLUCENCY_MAP_BIT | OPACITY_MASK_MAP_BIT)) != 0) ?
|
<$opacity$> = (((<$matKey$> & (OPACITY_TRANSLUCENT_MAP_BIT | OPACITY_MASK_MAP_BIT)) != 0) ?
|
||||||
(((<$matKey$> & OPACITY_MASK_MAP_BIT) != 0) ? step(OPACITY_MASK_THRESHOLD, <$fetchedOpacity$>) : <$fetchedOpacity$>) :
|
(((<$matKey$> & OPACITY_MASK_MAP_BIT) != 0) ? step(<$fetchedOpacity$>, OPACITY_MASK_THRESHOLD) : <$fetchedOpacity$>) :
|
||||||
1.0) * <$materialOpacity$>;
|
1.0) * <$materialOpacity$>;
|
||||||
}
|
}
|
||||||
<@endfunc@>
|
<@endfunc@>
|
||||||
|
|
Loading…
Reference in a new issue