Class: ShaderMaterial

ShaderMaterial(aIllumShader)

Support object for loading properties of a Material into GLSL

Found in Chapter 8, page 466 of the textbook

Example: 8.7 Shadow Shaders

Constructor

new ShaderMaterial(aIllumShader)

Parameters:
Name Type Description
aIllumShader WebGLProgram compiled IllumShader program this ShaderMaterial belongs to
Source:

Methods

loadToShader(aMaterial)

Loads a Material into the IllumShader
Parameters:
Name Type Description
aMaterial Material Material to load into GLSL
Source: