Debian Codegraph @

doc/man/man3/ivm/nodes/SoSpotLight.ivm

raw
1 NAME SoSpotLight SoSpotLt "" {
2 node representing a spotlight source
3 }
4
5 INCLUDE nodes/SoSpotLight.h
6
7 DESC {
8 This node defines a spotlight style light source.
9 A spotlight is placed at a
10 fixed location in 3-space and illuminates in a cone along a particular
11 direction. The intensity of the illumination drops off exponentially
12 as a ray of light diverges from this direction toward the edges of the
13 cone. The rate of drop-off and the angle of the cone are controlled by
14 the \vdropOffRate\. and \vcutOffAngle\. fields.
15 }
16
17 FIELD location { Location of the source. }
18
19 FIELD direction { Principal direction of illumination (center axis of cone). }
20
21 FIELD dropOffRate {
22 Rate of intensity drop-off per change in angle from primary direction:
23 0 = constant intensity, 1 = very sharp drop-off
24 }
25
26 FIELD cutOffAngle {
27 Angle (in radians) outside of which intensity is zero, measured from
28 the center axis of the cone to an edge.
29 }
30
31 METHOD "" SoSpotLight() {
32 Creates a spotlight source node with default settings.
33 }
34
35 METHOD "" static SoType getClassTypeId() {
36 Returns type identifier for this class.
37 }
38
39 ACTION SoGLRenderAction {
40 Activates this light (if so specified) during traversal. All shape
41 nodes that come after this light in the scene graph are illuminated by
42 this light. The light's location is affected by the current
43 transformation.
44 }
45
46 ALSO { SoDirectionalLight, SoPointLight }