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
Diffuse color.
public Color Diffuse { get; set; }

DisableLighting

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

Emission

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

FlatShaded

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

IndexOfRefraction

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

Luminosity

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

OverrideObjectColor

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

OverrideObjectReflectivity

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

OverrideObjectTransparency

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

Reflectivity

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

Shine

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

ShineIntensity

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

Transparency

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

Methods

GetTexture

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

GetTextures

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

RemoveTexture

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

SetTexture

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