module:extras/horgradshader

Back to documentation index.

module:extras/horgradshader()

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

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

Members

module:extras/horgradshader.horGradientShader (constant)

GLSL shader code for a screen-space horizontal gradient. It takes the following uniforms: "color1" is a 4-element array giving the red, green, blue, and alpha components, in that order, of the left-hand color; and "color2" is those same components of the right-hand color.

Back to documentation index.