Skip to content

Commit

Permalink
fixed constant color alpha value
Browse files Browse the repository at this point in the history
  • Loading branch information
z3y committed Sep 17, 2024
1 parent 3c98a79 commit 2db216e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Editor/ShaderNode/Nodes/Constants/ColorConstantNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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}");
}
Expand Down

0 comments on commit 2db216e

Please sign in to comment.