Return to index


sides - set the number of sides for the current material


sides { 1 | 2 }


The sides entity is used to set the number of sides for the current material. If a surface is two-sided, then it will appear identical when viewed from either the front or the back. If a surface is one-sided, then it appears invisible when viewed from the back side. This means that a transmitting object will affect the light coming in through the front surface and ignore the characteristics of the back surface, unless the index of refraction is set. If the index of refraction is set, then the object will act as a solid piece of dielectric material. In either case, the transmission properties of the exiting surface should be the same as the incident surface for the model to be physically valid.

The default number of sides is two.


# Describe a blue crystal ball
m blue_crystal =
        ir 1.650000 0
	# Solid dielectrics must use one-sided materials
        sides 1
        rs 0.0602 0
                cxy 0.3127 0.2881
        ts 0.6425 0
v sc =
	p 10 15 1.5
sph sc .02


ed, ir, m, rd, rs, td, ts