I’ve been trying to apply a non-textured white unlit material.
I think I’m either not setting or not applying it correctly.
I’ve tried clearing the materials and textures on the node after loading the model.
Here is the code:
Material whiteMat; whiteMat.set_ambient(LColor(1, 1, 1, 1)); // Also tried that with "models/box" NodePath node = window->load_model(framework->get_models(), "models/misc/rgbCube"); node.clear_texture(); // Doesn't seem to do anything node.set_material(material, 1); node.reparent_to(window->get_render());
Any help would be appreciated.