Return to index

NAME

rs - set the specular reflectance for the current material

SYNOPSIS

rs rho_s alpha_r

DESCRIPTION

Set the specular reflectance for the current material to rho_s using the current color to determine the spectral characteristics. The surface roughness parameter is set to alpha_r, 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.

EXAMPLE

# Define a slightly rough brass metallic surface
m rough_brass =
	c
		cxy .3820 .4035
	# 30% specular, 9% diffuse
	rs .30 .08
	rd .09

SEE ALSO

c, ed, ir, m, rd, sides, td, ts