ColorMaterialFeatures Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Flags specific to the ColorMaterial.
public enum class ColorMaterialFeatures
public enum ColorMaterialFeatures
type ColorMaterialFeatures =
Public Enum ColorMaterialFeatures
- Inheritance
-
ColorMaterialFeatures
Fields
Name | Value | Description |
---|---|---|
None | 0 | |
UseVertexColor | 1 | Use the vertex color (if provided by the mesh). |
DoubleSided | 2 | The material is rendered double-sided. Otherwise back-faces may be culled, depending on the selected SingleSidedMode. |
FadeToBlack | 4 | If enabled, this material fades to black as opposed to fading to transparent when using FadeOut. Fading to black has the same effect on see-through devices like HoloLens but has significantly lower rendering cost. |
AlphaClipped | 8 | Enables hard cut-outs on a per-pixel basis based on the alpha value being below AlphaClipThreshold. This works for opaque materials as well. |
TransparencyWritesDepth | 16 | Toggles transparency depth writes. Objects rendered transparently do not contribute to the depth buffer as a default. Set this to true if objects associated with this material should write depth. |
FresnelEffect | 32 | If enabled this material will have a Fresnel effect additively added to the rendering of the base material. Use the FresnelEffectExponent and FresnelEffectColor to control the effect visuals. |