0 votes

I am currently trying to change the color of my Mesh like so:

var mesh_node = get_node("MeshInstance")
var material = mesh_node.get_surface_material(0)
material.set_albedo(color)

And this works to a certain extent.
The color changes successfully, however afterwards the shade doesn't load anymore.
As if flags_unshaded = true, this is however not the case, I printed flags_unshaded and it was still set to false.

How can I fix this?

Godot version 3.2.3
in Engine by (14 points)

Please log in or register to answer this question.

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 webmas[email protected] with your username.