ANSYS::Nexus::GLTFWriter::Material Class Reference
Last update: 17.04.2023Materials describe how primitives are rendered. More...
#include <GLTFWriter.h>
Inheritance diagram for ANSYS::Nexus::GLTFWriter::Material:
Public Member Functions | |
virtual Material * | Mirror ()=0 |
virtual bool | AppendValue (Value *value)=0 |
Static Public Member Functions | |
static Material * | Create (GLTF *gltf, Technique *technique) |
Detailed Description
Materials describe how primitives are rendered.
An important part of materials is the values that override a corresponding value in the technique. This allows for techniques to be reused.
Definition at line 29 of file GLTFMaterial.h.
Member Function Documentation
◆ AppendValue()
|
pure virtual |
Adds a value to a material. Multiple values can be appended to a material. Values are generally Optional, and are used to override default values of techniques parameters. Value with name "texture0" is reserved for color of scalar that is used in probing.
- Returns
- Status of AppendValue.
- Parameters
-
[in] value Value object.
◆ Create()
|
static |
Creates a material.
- Returns
- Material object. Do not delete this pointer.
- Examples
- Test002.cpp, Test005.cpp, Test008.cpp, Test009.cpp, Test010.cpp, Test013.cpp, and Test014.cpp.
◆ Mirror()
|
pure virtual |
The documentation for this class was generated from the following file:
- D:/ANSYSDev/NoBackup/branches/EnSight-Second-Coming/webgl_viewer/gltfwriterlib/include/GLTFMaterial.h