material
- : material
shiny¶ - : material
dull¶ - : material
metal¶ - : material
default¶ - : material
([ka kd ks])¶ - : material
([ka kd ks n sc])¶ - : material
(h, …)¶ Set the reflectance properties of surfaces and patches.
The presets set ambient, diffuse and specular strength, specular exponent and specular color reflectance as follows:
preset ka kd ks n sc shiny 0.3 0.6 0.9 20 1.0 dull 0.3 0.8 0.0 10 1.0 metal 0.3 0.3 1.0 25 0.5 default 0.3 0.6 0.9 10 1.0 A numeric vector with 3, 4 or 5 elements sets the first properties of [ka kd ks n sc] and leaves the rest alone. h is an axes (all its surfaces and patches) or a vector of surface and patch handles.