Skip to content

material

plot · scripts/plot/appearance/material.m

: 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:

presetkakdksnsc
shiny0.30.60.9201.0
dull0.30.80.0101.0
metal0.30.31.0250.5
default0.30.60.9101.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.