Colour change after going from Albedo Colour to Dynamic Texture

So, as you can see in the above playground, there are two coloured spheres.

  • The color of the left sphere is generated by using a Color3 and setting said Color3 as the albedoColor of the PBRMaterial of the sphere.
  • The color of the right sphere, is generated by a DynamicTexture that has been filled with a specific Color3.

As you may have easily noticed, both spheres look different.
As you may have less easily noticed, both spheres are using the same Color3.
As you may deduced, I would like both spheres to look the same. Specifically, I would like the Left Sphere (The one using the AlbedoColor), to look like the Right Sphere (The one using the Dynamic Texture).

We only noticed that problem recently in our project, because we were only testing it with colours whose RGB channels were either 1.0/FF or 0.0/00.

I have been make able to make the Right Sphere looks like the Left Sphere using the following line of code sphere2.material.albedoTexture.gammaSpace = false;, but I don’t know how to do the opposite for the Left Sphere.

Could you help me, please ?

Is this exactly how you want them to look?

1 Like

Thanks you. Yes, this is it.

1 Like