PbrMaterialFeatures Enum

Definition

Flags specific to the PbrMaterial.

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

Fields

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.

DoubleSided 4

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

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.

None 0
SpecularHighlights 8

Enables specular highlights for this material.

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.

TransparentMaterial 1

The material is transparent.

UseVertexColor 2

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

Applies to

See also