AbstractBaseShader

AbstractBaseShader

This class defines an interface which all shaders utilize

Extends

  • PIXI.Shader

Members

defaultUniforms :object

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

Type:
  • object

fragmentShader :string

The fragment shader which renders this source. A subclass of AbstractBaseShader must implement the fragmentShader static field.

Type:
  • string

HSB2RGB :string

Convert a Hue-Saturation-Brightness color to RGB - useful to convert polar coordinates to RGB

Type:
  • string

NOISE :string

A conventional noise generator

Type:
  • string

PRNG :string

A conventional pseudo-random number generator with the "golden" numbers, based on uv position

Type:
  • string

PRNG3D :string

A Vec3 pseudo-random generator, based on uv position

Type:
  • string

vertexShader :string

The default vertex shader used by all instances of AbstractBaseShader

Type:
  • string

Methods

(static) create() → {AbstractBaseShader}

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

Returns:
Type
AbstractBaseShader

(static) FADE()

Fade easing to use with distance in interval [0,1]

(static) FBM()

Fractional Brownian Motion for a given number of octaves