Menu - Top - Home - Donate to Me


Back to documentation index.


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";


(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.