0 votes


I need to figure out a way to multiply the vertex color as defined into a model in Blender. As far as I can tell it is not possible using the default spatial material and I don't feel like rewriting the entire thing from scratch so where can I find the shader to edit it or better make a copy just to add the functionality I'm interested in?


in Engine by (18 points)

1 Answer

+1 vote
Best answer

Configure you SpatialMaterial the way you want it (the features you need) then in the slot where your material is assigned, click the dropdown and select "Convert to ShaderMaterial". If you don't configure it first, you'll only get the basic shader code (without normal mapping for example).

As an aside: You can use the vertex color with SpatialMaterial, look for Vertex Color -> Use As Albedo. This does multiply with Albedo Color and Albedo Texture. But maybe you're looking for something different?

by (1,513 points)
selected by

That's great thank you for the info. I tried the "Use as albedo" setting before getting into shaders btw but it wasn't working. Maybe I'm doing something wrong with the export from Blender though. Good to know this. Thanks!

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.