C3DLight::SetTheta |
Top Previous Next |
Syntax:
SetTheta(float theta)
Purpose: Sets the angle, in radians, of a spotlight's inner cone.
Parameters: theta - The new angle, in radians.
Returned value(s): None
Application: light1.SetTheta(3.1415/4.0)
Class Hierarchy -------C3DLight
Additional Info: A spotlight emits a cone of light. Only objects within the cone are illuminated. The cone produces light of two degrees of intensity, with a central brightly lit section (the umbra) that acts as a point source, and a surrounding dimly lit section (the penumbra) that merges with the surrounding deep shadow.
The theta angle is the angle of the umbra. The allowed range of theta is [0, o]. The default for theta and phi are o/2 and o respectively.
See Also:
|