Options
All
  • Public
  • Public/Protected
  • All
Menu

A facet is an adapter between a domain concept and a uniform value parameter in a WebGL shader program. An object implementing the Facet interface is capable of setting uniform values on a FacetVisitor (which is usually implemented by a Material).

Hierarchy

Implemented by

Index

Methods

Optional addRef

  • addRef(): number
  • Increments the reference count of an Shareable instance.

    Returns number

    The new reference count. This value is intended to be used only for testing purposes.

Optional release

  • release(): number
  • Decrements the reference count of an Shareable instance.

    Returns number

    The new reference count. This value is intended to be used only for testing purposes.

setUniforms

  • Sets one of more uniform values on the FacetVisitor.

    Parameters

    • visitor: FacetVisitor

      A visitor to the Facet, usually a Material implementation.

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Accessor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Property
  • Method
  • Protected property
  • Protected method
  • Static property
  • Static method

Generated using TypeDoc