fixed ColorNormalize
This commit is contained in:
parent
25ea53bfbb
commit
bcec0e0e0f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue