Enumeration BuiltinShader

Types of builtin shaders that are always available.

Constructors

  • Parameters

    • do_not_: undefined
    • construct_: undefined
    • this_: undefined
    • type_: undefined

    Returns BuiltinShader

Values

Count: EnumValue<BuiltinShader, number>

The number of enum values.

Custom: EnumValue<BuiltinShader, number>
Decal: EnumValue<BuiltinShader, number>

Special shader used for rendering decals that project onto other geometry.

ParallaxOcclussionMapStandard: EnumValue<BuiltinShader, number>

Special shader used for rendering Parallax Occlusion Mapping relief technique. Uses same surface shading as Standard.

ParallaxOcclussionMapTransparent: EnumValue<BuiltinShader, number>

Special shader used for rendering Parallax Occlusion Mapping relief technique but works with transparency. Uses same surface shading as Transparent.

ParticlesLit: EnumValue<BuiltinShader, number>

Special shader used for rendering particles with lighting using the forward rendering pipeline (supports transparency).

ParticlesLitOpaque: EnumValue<BuiltinShader, number>

Special shader used for rendering particles with lighting using the deferred rendering pipeline (no support for transparency).

ParticlesUnlit: EnumValue<BuiltinShader, number>

Special shader used for rendering particles without any lighting, with support for transparency.

ParticlesVolumetric: EnumValue<BuiltinShader, number>

Special shader used for creating localized volumetric lighting by using the particle system to simulate the participating media.

RelaxedConeStepStandard: EnumValue<BuiltinShader, number>

Special shader used for rendering Relaxed Cone Stepping relief technique. Uses same surface shading as Standard.

RelaxedConeStepTransparent: EnumValue<BuiltinShader, number>

Special shader used for rendering Relaxed Cone Stepping relief technique but works with transparency. Uses same surface shading as Transparent.

SpriteImage: EnumValue<BuiltinShader, number>

Sprite image shader.

Registered early so the async load is processed first as required for UI.

SpriteLine: EnumValue<BuiltinShader, number>

Sprite line shader.

Registered early so the async load is processed first as required for UI.

SpriteText: EnumValue<BuiltinShader, number>

Sprite text shader.

Registered early so the async load is processed first as required for UI.

Standard: EnumValue<BuiltinShader, number>

Physically based shader used for opaque 3D geometry.

Transparent: EnumValue<BuiltinShader, number>

Physically based shader used for transparent 3D geometry.

Methods

  • Takes an array of enum values and combines them as a single enum flag value. This assumes that the target enum is a flag enum that can have their values combined using bitwise operators.

    Type Parameters

    Parameters

    Returns EnumValueTyped<T, number>

    The combined enum value.

  • Type Parameters

    • T

    Parameters

    Returns string

    Compatibility

  • Returns string[]

    Compatibility

  • Parameters

    • index: number

    Returns number

    Compatibility

  • Returns number[]

    Compatibility

  • Gets the name for the enumeration value that matches the specified enumValue.

    Type Parameters

    • T

    Parameters

    Returns string

    The enumeration value or undefined if not found.

  • Gets the enumeration names

    Returns string[]

    The enumeration names.

  • Gets the enumeration value at the specified index.

    Type Parameters

    • T = number

    Parameters

    • index: number

      The index.

    Returns EnumValueTyped<T, number>

    The enumeration value or undefined if not found.

  • Determines if the enum value has the flags set.

    Type Parameters

    Parameters

    Returns boolean

  • Determines if the enum bits were changed from previousValue to currentValue.

    Type Parameters

    Parameters

    Returns boolean

  • Iterates the enumeration names

    Returns Generator<string, any, any>

    The enumeration names.

  • Iterates the enumeration values

    Type Parameters

    • T = any

    Returns Generator<EnumValueTyped<T, number>, any, any>

    The enumeration values.

  • Takes a single enum value and splits it into separated flag values set on the value. This assumes that the target enum is a flag enum that can have their values combined using bitwise operators.

    Type Parameters

    Parameters

    • value: number | BrandedType<number, "enum"> | BrandedType<T, "enum">

      The enum value to have it's value split using bitwise-and operator.

    Returns EnumValueTyped<T, number>[]

    An array of each "bit flag" set in the enum.