File: SoLightModel.ivm

package info (click to toggle)
inventor 2.1.5-10-14
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 32,892 kB
  • ctags: 21,729
  • sloc: ansic: 33,867; lisp: 7,361; cpp: 3,874; yacc: 369; sh: 359; perl: 234; awk: 141; makefile: 76; csh: 35; sed: 11
file content (36 lines) | stat: -rw-r--r-- 869 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
NAME SoLightModel SoLModel SO_L_MODEL_ {
node that defines the lighting model to use when rendering
}

INCLUDE nodes/SoLightModel.h

DESC {
This node defines the lighting model to be used when rendering
subsequent shapes. The lighting model is specified in the \vmodel\.
field. When the default model (Phong lighting) is used, light sources
are required in a scene for objects to be easily visible.
}

ENUM Model {
    BASE_COLOR	"Use only the base (diffuse) object color",
    PHONG	"Use Phong lighting model"
}

FIELD model { Lighting model to use }

METHOD "" SoLightModel() { Creates a light model node with default settings. }

METHOD "" static SoType getClassTypeId() {
Returns type identifier for this class.
}

ACTION SoGLRenderAction, SoCallbackAction {
Sets the current lighting model in the state.
}

ALSO {
SoBaseColor,
SoEnvironment,
SoLight,
SoMaterial
}