ShaderSet

ShaderSet class

Shader programs for each kind of materials

Methods

constructor

NameDescription
constructor()Construct the instance of ShaderSet

Result:


getLambert

NameDescription
getLambert()Gets or sets the shader that used to render the lambert material

Result:


setLambert

NameDescription
setLambert(value)Gets or sets the shader that used to render the lambert material

Result:


getPhong

NameDescription
getPhong()Gets or sets the shader that used to render the phong material

Result:


setPhong

NameDescription
setPhong(value)Gets or sets the shader that used to render the phong material

Result:


getPbr

NameDescription
getPbr()Gets or sets the shader that used to render the PBR material

Result:


setPbr

NameDescription
setPbr(value)Gets or sets the shader that used to render the PBR material

Result:


getFallback

NameDescription
getFallback()Gets or sets the fallback shader when required shader is unavailable

Result:


setFallback

NameDescription
setFallback(value)Gets or sets the fallback shader when required shader is unavailable

Result: