Static p5_sys::global::specularMaterial[][src]

pub static specularMaterial: SpecularMaterialInternalType
Expand description

Specular material for geometry with a given color. Specular material is a shiny reflective material. Like ambient material it also defines the color the object reflects under ambient lighting. For example, if the specular material of an object is pure red, but the ambient lighting only contains green, the object will not reflect any light. For all other types of light like point and directional light, a specular material will reflect the color of the light source to the viewer. Here's an example containing all possible materials.

Overloads

gray number specifying value between white and black.

alpha? alpha value relative to current color range (default is 0-255)


v1 red or hue value relative to the current color range

v2 green or saturation value relative to the current color range

v3 blue or brightness value relative to the current color range

alpha? alpha value relative to current color range (default is 0-255)


color color Array, or CSS color string