Problem not fixed yet, need to merge with upstream

This commit is contained in:
samcake 2016-03-21 13:30:08 -07:00
parent 227ddb12a6
commit d189dc4af2

View file

@ -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@>