Skip to content

Commit

Permalink
Merge pull request #725 from Skytrias/master
Browse files Browse the repository at this point in the history
fix t0 not being t
  • Loading branch information
ThisDevDane authored Aug 29, 2020
2 parents 32fda79 + 7b0ba76 commit 31989c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/math/linalg/specific.odin
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ vector4_linear_to_srgb :: proc(col: Vector4) -> Vector4 {
}

vector4_hsl_to_rgb :: proc(h, s, l: Float, a: Float = 1) -> Vector4 {
hue_to_rgb :: proc(p, q, t0: Float) -> Float {
hue_to_rgb :: proc(p, q, t: Float) -> Float {
t := t;
if t < 0 do t += 1;
if t > 1 do t -= 1;
Expand Down

0 comments on commit 31989c9

Please sign in to comment.