fixed ColorNormalize

This commit is contained in:
Marc Lavergne 2022-09-22 00:16:49 -05:00
parent 25ea53bfbb
commit bcec0e0e0f

View file

@ -518,7 +518,7 @@ func ColorToInt(col color.RGBA) int32 {
// ColorNormalize - Returns color normalized as float [0..1]
func ColorNormalize(col color.RGBA) Vector4 {
result := Vector4{}
r, g, b, a := col.RGBA()
r, g, b, a := col.R, col.G, col.B, col.A
result.X = float32(r) / 255
result.Y = float32(g) / 255
result.Z = float32(b) / 255