Color3 with inspector. Is this bug?

Hi!

I find a strange behavior in inspector. Look at this:

I don’t change color after assign you can trust me)))
PG:Babylon.js Playground

Maybe I misunderstood smth, if so, then I apologize

Hey there @simon ! The answer to this is actually in the little tiny font right below your picture.

image

It is calling toGammSpace on your color. If you look though at the two values they actually render the same color. If you want to check it out, you can just print it and look at a color picker. console.log(color.toGammaSpace().toHexString()); same color. :slight_smile:

2 Likes

Oh…When i get necessary color in inspector and then use it in my code i got unexpected result on update. Now i know)