Does Diffuse work on "Common/MatDefs/Light/Lighting.j3md"

I would like to have a cube that is colored but also is affected by a Directional Light

I see that Lighting.j3md has setColor(“Diffuse”, color);
and was hoping it behaved the same way as

this.getMaterial().setColor(“Color”, color);

but I cant seem to get Lighting.j3md to use anything besides its setTexture(“DiffuseMap”, texture);

Can anyone tell me what I am doing wrong?

There’s a flag in the Lighting.j3md file called “UseMaterialColors”.

1 Like

For future reference:

@vinexgames That fixed it thank you