Material: Material appearance
Uses new material system for appearance Each feature object now has a property called ShapeMaterial that describes its physical properties. If it has a shape, it has a material. The ShapeColor attribute is replaced by a ShapeAppearance attribute. This is a material list that describes all appearance properties, not just diffuse color. As a list in can be used for all elements of a shape, such as edges and faces. A new widget is provided to allow the user to select materials in a consistent fashion. It can also launch the material editor with its more advanced capabilities.
This commit is contained in:
committed by
Chris Hennes
parent
37c38acd19
commit
ba20441935
@@ -36,6 +36,7 @@
|
||||
#include "ModelPropertyPy.h"
|
||||
#include "ModelPy.h"
|
||||
#include "UUIDsPy.h"
|
||||
#include "PropertyMaterial.h"
|
||||
|
||||
namespace Materials
|
||||
{
|
||||
@@ -43,9 +44,9 @@ class Module: public Py::ExtensionModule<Module>
|
||||
{
|
||||
public:
|
||||
Module()
|
||||
: Py::ExtensionModule<Module>("Material")
|
||||
: Py::ExtensionModule<Module>("Materials")
|
||||
{
|
||||
initialize("This module is the Material module."); // register with Python
|
||||
initialize("This module is the Materials module."); // register with Python
|
||||
}
|
||||
|
||||
~Module() override = default;
|
||||
@@ -60,18 +61,18 @@ PyObject* initModule()
|
||||
|
||||
} // namespace Materials
|
||||
|
||||
PyMOD_INIT_FUNC(Material)
|
||||
PyMOD_INIT_FUNC(Materials)
|
||||
{
|
||||
PyObject* module = Materials::initModule();
|
||||
|
||||
Base::Console().Log("Loading Material module... done\n");
|
||||
|
||||
Base::Interpreter().addType(&Materials::MaterialManagerPy ::Type, module, "MaterialManager");
|
||||
Base::Interpreter().addType(&Materials::MaterialPy ::Type, module, "Material");
|
||||
Base::Interpreter().addType(&Materials::ModelManagerPy ::Type, module, "ModelManager");
|
||||
Base::Interpreter().addType(&Materials::ModelPropertyPy ::Type, module, "ModelProperty");
|
||||
Base::Interpreter().addType(&Materials::ModelPy ::Type, module, "Model");
|
||||
Base::Interpreter().addType(&Materials::UUIDsPy ::Type, module, "UUIDs");
|
||||
Base::Interpreter().addType(&Materials::MaterialManagerPy::Type, module, "MaterialManager");
|
||||
Base::Interpreter().addType(&Materials::MaterialPy::Type, module, "Material");
|
||||
Base::Interpreter().addType(&Materials::ModelManagerPy::Type, module, "ModelManager");
|
||||
Base::Interpreter().addType(&Materials::ModelPropertyPy::Type, module, "ModelProperty");
|
||||
Base::Interpreter().addType(&Materials::ModelPy::Type, module, "Model");
|
||||
Base::Interpreter().addType(&Materials::UUIDsPy::Type, module, "UUIDs");
|
||||
|
||||
|
||||
// Initialize types
|
||||
@@ -95,5 +96,7 @@ PyMOD_INIT_FUNC(Material)
|
||||
Materials::Material2DArray ::init();
|
||||
Materials::Material3DArray ::init();
|
||||
|
||||
Materials::PropertyMaterial ::init();
|
||||
|
||||
PyMOD_Return(module);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user