Question relevant to VertexColor

Fifth topic, nothing too special but not really an issue either but I’m just wondering something:

The Mesh object has been on the horizon for ROBLOX for quite some time now, and there a certain property on there that confuses me a bit, which is the VertexColor

The VertexColor property supposedly takes a Vector3 value (With the variables being X, Y, and Z), and I’m wondering as to why that is instead of a Color3 value?

Image references:
image

image

I am aware that I could just convert the Vector3 into a Color3 value that the API Reference gives me, but it still shouldn’t take a function to convert it

1 Like

Because you’re not actually setting the color of the texture, you’re remapping it’s original coloring using a vector. It’s a displacement of color rather than actually recoloring to a specific color.

1 Like

So if I were to change a SpecialMesh’s VertexColor by

VertexColor = Vector3.new(2, 0, 0)

I’m assuming it would add onto the original Mesh’s Color as well?

1 Like

Yes. However remember that, like Color, the range for each component is [0,1] or [0,255/255].

1 Like

Ooooh that explains why my eyes burn whenever I set the VertexColor to a high number, yeah I understand now thanks for the explanation!