module:extras/fragmentshaderlib

Back to documentation index.

module:extras/fragmentshaderlib()

The extras/fragmentshaderlib.js module. To import all symbols in this module, either of the following can be used:

import * from "extras/fragmentshaderlib.js";
// -- or --
import * as CustomModuleName from "extras/fragmentshaderlib.js";

Methods

(static) module:extras/fragmentshaderlib.fragmentShaderLib()

Returns GLSL shader code for several useful functions for shaders, especially fragment shaders. TODO: Not documented fully yet. Contains the following functions:

Return Value

The GLSL shader code. (Type: string)

Back to documentation index.