Material with depth plugin

Hierarchy

  • MaterialPluginBase
    • DepthPluginMaterial

Constructors

Accessors

Methods

  • Binds the material data.

    Parameters

    • uniformBuffer: UniformBuffer

      defines the Uniform buffer to fill in.

    Returns void

  • Returns a list of custom shader code fragments to customize the shader.

    Parameters

    • shaderType: "vertex" | "fragment"

      "vertex" or "fragment"

    Returns {
        [pointName: string]: string;
    }

    a list of pointName => code. Note that pointName can also be a regular expression if it starts with a !. In that case, the string found by the regular expression (if any) will be replaced by the code provided.

    • [pointName: string]: string
  • Sets the defines for the next rendering

    Parameters

    • defines: MaterialDefines

      the list of "defines" to update.

    Returns void