GSLS TextureLayerSettings supports signed data

This commit is contained in:
Erik Broberg
2016-10-17 15:33:16 +02:00
parent cb46649ea0
commit 612980974e

View File

@@ -75,7 +75,7 @@
float performLayerSettings(float currentValue, PerLayerSettings settings) {
float newValue = currentValue;
newValue = pow(newValue, settings.gamma);
newValue = sign(newValue) * pow(newValue, settings.gamma);
newValue = newValue * settings.multiplier;
newValue = newValue * settings.opacity;