Share via


PbrMaterialFeatures Enum

Definition

Flags specific to the PbrMaterial.

public enum class PbrMaterialFeatures
public enum PbrMaterialFeatures
type PbrMaterialFeatures = 
Public Enum PbrMaterialFeatures
Inheritance
PbrMaterialFeatures

Fields

Name Value Description
None 0
TransparentMaterial 1

The material is transparent.

UseVertexColor 2

Use the vertex color (if provided by the mesh).

DoubleSided 4

The material is rendered double-sided. Otherwise back-faces may be culled, depending on the selected SingleSidedMode.

SpecularHighlights 8

Enables specular highlights for this material.

AlphaClipped 16

Enables hard cut-outs on a per-pixel basis based on the alpha value being below AlphaClipThreshold. This works for opaque materials as well.

FadeToBlack 32

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.

FresnelEffect 64

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.

TransparencyWritesDepth 128

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.

Applies to

See also