AbstractBaseShader

AbstractBaseShader

This class defines an interface which all shaders utilize

Extends

  • PIXI.Shader

Members

defaultUniforms :object

Source:

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

Type:
  • object

fragmentShader :string

Source:

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

Type:
  • string

HSB2RGB :string

Source:

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

Type:
  • string

NOISE :string

Source:

A conventional noise generator

Type:
  • string

PRNG :string

Source:

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

Type:
  • string

PRNG3D :string

Source:

A Vec3 pseudo-random generator, based on uv position

Type:
  • string

vertexShader :string

Source:

The default vertex shader used by all instances of AbstractBaseShader

Type:
  • string

Methods

(static) create() → {AbstractBaseShader}

Source:

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

Returns:
Type
AbstractBaseShader

(static) FADE()

Source:

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

(static) FADE2(slope, order)

Source:

TODO: FOR TESTING An alternative easing function which is partially linear followed by exponential falloff

Parameters:
Name Type Default Description
slope number 0.2

The slope of linear falloff

order number 4

The order of polynomial falloff

(static) FBM()

Source:

Fractional Brownian Motion for a given number of octaves