API Docs for: 0.1.0
Show:

Shaders Class

Module: Shaders

Initialises the shaders.

Constructor

Shaders

() Object

Returns:

Object:

The shader program containing the compiled shaders.

Item Index

Methods

Methods

compileShader

(
  • code
  • type
)
Object

Compiles an OpenGL shader from raw shader code.

Parameters:

  • code String

    The uncompiled shader program.

  • type String

    The type of shader to compiled (fragment or vertex).

Returns:

Object:

The compiled gl shader.