DisplayAttributeMaterial

References
public sealed class DisplayAttributeMaterial
One side of the material the display pipeline shades an object with. A texture-style VisualAnalysisMode sets its texture up here from SetUpDisplayAttributes.
Remarks: Valid for as long as the DisplayPipelineAttributes it came from, the same as DisplayPipelineAttributes.MeshSpecificAttributes. The attributes passed to SetUpDisplayAttributes belong to the display pipeline and are disposed when that call returns; using this afterwards does nothing rather than reaching freed memory.

Properties

Diffuse

#Since v9.0
public Color Diffuse { get; set; }
Diffuse color.

DisableLighting

#Since v9.0
public bool DisableLighting { get; set; }
When true the material is drawn at full diffuse color, ignoring the scene lights.

Emission

#Since v9.0
public Color Emission { get; set; }
Emission color.

FlatShaded

#Since v9.0
public bool FlatShaded { get; set; }
Shades with no smoothing, so the individual render mesh faces are visible.

IndexOfRefraction

#Since v9.0
public double IndexOfRefraction { get; set; }
Index of refraction.

Luminosity

#Since v9.0
public int Luminosity { get; set; }
Luminosity.

OverrideObjectColor

#Since v9.0
public bool OverrideObjectColor { get; set; }
Objects acquire color from render materials.

OverrideObjectReflectivity

#Since v9.0
public bool OverrideObjectReflectivity { get; set; }
Objects acquire reflectivity from render materials.

OverrideObjectTransparency

#Since v9.0
public bool OverrideObjectTransparency { get; set; }
Objects acquire transparency from render materials.

Reflectivity

#Since v9.0
public double Reflectivity { get; set; }
Reflectivity, 0.0 to 1.0.

Shine

#Since v9.0
public double Shine { get; set; }
Shine, 0 to Material.MaxShine.

ShineIntensity

#Since v9.0
public int ShineIntensity { get; set; }
Shine intensity.

Transparency

#Since v9.0
public double Transparency { get; set; }
Transparency, 0.0 opaque to 1.0 transparent.

Methods

GetTexture

#Since v9.0
public Texture GetTexture(TextureType which)
Gets the texture of the given type, or null when this material has none.
which (TextureType)The texture type. TextureType.None matches nothing.

GetTextures

#Since v9.0
public Texture[] GetTextures()
Gets every texture this material uses.

RemoveTexture

#Since v9.0
public bool RemoveTexture(TextureType which)
Removes every texture of the given type.
which (TextureType)The texture type. TextureType.None removes nothing.
true when a texture was removed.

SetTexture

#Since v9.0
public bool SetTexture(Texture texture, TextureType which)
Assigns a texture, replacing any texture this material already has of the same type.
texture (Texture)The texture to assign.
which (TextureType)The texture type.
true on success.