Menu - Top - Home - Donate to Me


Back to documentation index.


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

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


module:extras/radgradshader.radialGradientShader (constant)

GLSL shader code for a screen-space radial gradient. It takes the following uniforms: "colorCenter" is a 4-element array giving the red, green, blue, and alpha components, in that order, of the color at the center; and "colorEdges" is those same components of the color at the edges.

Back to documentation index.