DOMMaterial

From Virtual World Web Wiki
Jump to: navigation, search

Represents a material that can be applied to a DOMRenderable

Remarks [edit]

Properties

bool Enabled {get;}
Always true for Materials
bool HighQuality {get; set;}
True if this material should be rendered in high quality
int Index {get; set;}
The material index to map this material to
string Shader {get; set;}
The name of the shader to use
string SubMesh {get; set;}
Specifies a named sub-mesh to apply this material to
bool Visible {get;}
Always true for Materials

Constructors

DOMMaterial()
Constructs a new DOMMaterial with default settings
DOMMaterial(DOMObject[] children)
Constructs a new DOMMaterial, adding children at the same time
DOMMaterial(string title, DOMObject[] children)
Constructs a new DOMMaterial, setting a title and adding children at the same time

Methods

bool CheckChild(DOMObject value)
Called on DOMObject derived types just before a child is added to their Children collection to ensure they are acceptable