Click or drag to resize

Material Properties

The Material type exposes the following members.

Properties
 NameDescription
Public propertyBlendMode Gets the blending mode. Default value is Default.
Public propertyBumpScaling Gets the bump scaling. Default value is 0.0f;
Public propertyColorAmbient Gets the color ambient. Default value is (.2f, .2f, .2f, 1.0f).
Public propertyColorDiffuse Gets the color diffuse. Default value is white.
Public propertyColorEmissive Gets the color emissive. Default value is black.
Public propertyColorReflective Gets the color reflective. Default value is black.
Public propertyColorSpecular Gets the color specular. Default value is black.
Public propertyColorTransparent Gets the color transparent. Default value is black.
Public propertyHasBlendMode Checks if the material has a blend mode property.
Public propertyHasBumpScaling Checks if the material has a bump scaling property.
Public propertyHasColorAmbient Checks if the material has a color ambient property.
Public propertyHasColorDiffuse Checks if the material has a color diffuse property.
Public propertyHasColorEmissive Checks if the material has a color emissive property.
Public propertyHasColorReflective Checks if the material has a color reflective property.
Public propertyHasColorSpecular Checks if the material has a color specular property.
Public propertyHasColorTransparent Checks if the material has a color transparent property.
Public propertyHasName Checks if the material has a name property.
Public propertyHasOpacity Checks if the material has an opacity property.
Public propertyHasReflectivity Checks if the material has a reflectivty property.
Public propertyHasShaders Gets if the material has embedded shader source code.
Public propertyHasShadingMode Checks if the material has a shading-mode property.
Public propertyHasShininess Checks if the material has a shininess property.
Public propertyHasShininessStrength Checks if the material has a shininess strength property.
Public propertyHasTextureAmbient Gets if the material has a ambient texture in the first texture index.
Public propertyHasTextureAmbientOcclusion Gets if the material has an ambient occlusion map in in the first texture index.
Public propertyHasTextureDiffuse Gets if the material has a diffuse texture in the first texture index.
Public propertyHasTextureDisplacement Gets if the material has a displacement texture in the first texture index.
Public propertyHasTextureEmissive Gets if the material has a emissive texture in the first texture index.
Public propertyHasTextureHeight Gets if the material has a height texture in the first texture index.
Public propertyHasTextureLightMap Gets if the material has a light map texture in the first texture index.
Public propertyHasTextureNormal Gets if the material has a normal texture in the first texture index.
Public propertyHasTextureOpacity Gets if the material has an opacity texture in the first texture index.
Public propertyHasTextureReflection Gets if the material has a reflection texture in the first texture index.
Public propertyHasTextureSpecular Gets if the material has a specular texture in the first texture index.
Public propertyHasTransparencyFactor Checks if the material has a transparency factor property.
Public propertyHasTwoSided Checks if the material has a two-sided property.
Public propertyHasWireFrame Checks if the material has a wireframe property.
Public propertyIsPBRMaterial Determines if the material is part of a PBR workflow or not.
Public propertyIsTwoSided Gets if the material should be rendered as two-sided. Default value is false.
Public propertyIsWireFrameEnabled Gets if wireframe should be enabled. Default value is false.
Public propertyName Gets the material name value, if any. Default value is an empty string.
Public propertyOpacity Gets the opacity. Default value is 1.0f.
Public propertyPBR Gets a group accessor for any PBR properties in the material.
Public propertyPropertyCount Gets the number of properties contained in the material.
Public propertyReflectivity Gets the reflectivity. Default value is 0.0f;
Public propertyShaders Gets a group accessor for any embedded shader source code in the material.
Public propertyShadingMode Gets the shading mode. Default value is None, meaning it is not defined.
Public propertyShininess Gets the shininess. Default value is 0.0f;
Public propertyShininessStrength Gets the shininess strength. Default vaulue is 1.0f.
Public propertyTextureAmbient Gets or sets ambient texture properties in the first texture index.
Public propertyTextureAmbientOcclusion Gets or sets ambient occlusion texture properties in the first texture index.
Public propertyTextureDiffuse Gets or sets diffuse texture properties in the first texture index.
Public propertyTextureDisplacement Gets or sets displacement texture properties in the first texture index.
Public propertyTextureEmissive Gets or sets emissive texture properties in the first texture index.
Public propertyTextureHeight Gets or sets height texture properties in the first texture index.
Public propertyTextureLightMap Gets or sets light map texture properties in the first texture index.
Public propertyTextureNormal Gets or sets normal texture properties in the first texture index.
Public propertyTextureOpacity Gets or sets opacity texture properties in the first texture index.
Public propertyTextureReflection Gets or sets reflection texture properties in the first texture index.
Public propertyTextureSpecular Gets or sets specular texture properties in the first texture index.
Public propertyTransparencyFactor Gets the transparency factor. This is used to make a surface more or less opaque (0 = opaque, 1 = transparent). Default value is 0.0f.
Top
See Also