Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | lavaduder | |
Old Version | Published before Godot 3 was released. |
So I have a fixed shader, and I want it’s color to change when I do something. (Like hit key I or something.) However Fixed_Material
doesn’t have a set_diffuse
function.
So how does one change the Diffuse Color in gdscript.
Here’s what I’ve done so far.
func _ready():
shader = FixedMaterial.new()
FixedMaterial.new().???
set_material_override(shader)