diff --git a/Editor/ShaderNode/Nodes/Constants/ColorConstantNode.cs b/Editor/ShaderNode/Nodes/Constants/ColorConstantNode.cs index 1f9dc2e..73796e8 100644 --- a/Editor/ShaderNode/Nodes/Constants/ColorConstantNode.cs +++ b/Editor/ShaderNode/Nodes/Constants/ColorConstantNode.cs @@ -52,7 +52,8 @@ protected override void Generate(NodeVisitor visitor) v.x = MathF.Pow(_value.x, 2.2f); v.y = MathF.Pow(_value.y, 2.2f); v.z = MathF.Pow(_value.z, 2.2f); - v.w = MathF.Pow(_value.w, 2.2f); + //v.w = MathF.Pow(_value.w, 2.2f); + v.w = _value.w; SetVariable(OUT, $"{PrecisionString(4)}{v}"); }