Return to index
rs - set the specular reflectance for the current material
Set the specular reflectance for the current material to
using the current color to determine the spectral characteristics.
The surface roughness parameter is set to
which is the RMS height of surface variations over the
autocorrelation distance (equivalent to RMS facet slope).
A roughness value of zero means a perfectly smooth surface, and
values greater than 0.2 are unusual.
(See application notes section 6.1.2 for a comparison between the
roughness parameter and Phong specular power.)
The default specular reflectance is zero.
# Define a slightly rough brass metallic surface
m rough_brass =
cxy .3820 .4035
# 30% specular, 9% diffuse
rs .30 .08