Meta_MaterialArgument
Module: Metanodes / Definitions
A MaterialArgument defines an argument for a Meta_MaterialParameter. More...
#include <meta_division.hpp>
Public Types
| Type | Name |
|---|---|
| enum | IDX { Idx_Source, Idx_PropertyName } Property index. |
| enum | Source { Source_Default, Source_Value, Source_Property } Values for Idx_Source. |
Detailed Description
struct Meta_MaterialArgument;
A MaterialArgument defines an argument for a Meta_MaterialParameter.
The actual argument value is added as a Meta_MetaDataNNN child, or indirectly references a property of a StdMaterial parent. NOTE: PropertyName is meaningless until used under a StdMaterial node pair.
Public Types Documentation
enum IDX
| Enumerator | Value | Description |
|---|---|---|
| Idx_Source | Source (int) - where the value of the argument should come from. | |
| Idx_PropertyName | string - the name of the StdMaterial property to use if Source==Source_Property |
Property index.
enum Source
| Enumerator | Value | Description |
|---|---|---|
| Source_Default | From the definition default argument. | |
| Source_Value | From a constant stored as a Meta_MetaDataNNN child of this node. | |
| Source_Property | From a property of a StdMaterial parent. Which property to use is specified in the "PropertyName" property of this node. |
Values for Idx_Source.