| 1 |
NAME SoLightModel SoLModel SO_L_MODEL_ { |
| 2 |
node that defines the lighting model to use when rendering |
| 3 |
} |
| 4 |
|
| 5 |
INCLUDE nodes/SoLightModel.h |
| 6 |
|
| 7 |
DESC { |
| 8 |
This node defines the lighting model to be used when rendering |
| 9 |
subsequent shapes. The lighting model is specified in the \vmodel\. |
| 10 |
field. When the default model (Phong lighting) is used, light sources |
| 11 |
are required in a scene for objects to be easily visible. |
| 12 |
} |
| 13 |
|
| 14 |
ENUM Model { |
| 15 |
BASE_COLOR "Use only the base (diffuse) object color", |
| 16 |
PHONG "Use Phong lighting model" |
| 17 |
} |
| 18 |
|
| 19 |
FIELD model { Lighting model to use } |
| 20 |
|
| 21 |
METHOD "" SoLightModel() { Creates a light model node with default settings. } |
| 22 |
|
| 23 |
METHOD "" static SoType getClassTypeId() { |
| 24 |
Returns type identifier for this class. |
| 25 |
} |
| 26 |
|
| 27 |
ACTION SoGLRenderAction, SoCallbackAction { |
| 28 |
Sets the current lighting model in the state. |
| 29 |
} |
| 30 |
|
| 31 |
ALSO { |
| 32 |
SoBaseColor, |
| 33 |
SoEnvironment, |
| 34 |
SoLight, |
| 35 |
SoMaterial |
| 36 |
} |