AbstractBaseShader

AbstractBaseShader

This class defines an interface which all shaders utilize

Properties:
Name Type Description
uniforms object

The current uniforms of the Shader

Extends

  • PIXI.Shader

Members

_defaults :object

The initial default values of shader uniforms

Type:
  • object

defaultUniforms :object

The default uniform values for the shader. A subclass of AbstractBaseShader must implement the defaultUniforms static field.

Type:
  • object

fragmentShader :string

The raw fragment shader used by this class. A subclass of AbstractBaseShader must implement the fragmentShader static field.

Type:
  • string

vertexShader :string

The raw vertex shader used by this class. A subclass of AbstractBaseShader must implement the vertexShader static field.

Type:
  • string

Methods

(static) create() → {AbstractBaseShader}

A factory method for creating the shader using its defined default values

Returns:
Type
AbstractBaseShader