man SoLightModel () - node that defines the lighting model to use when rendering

NAME

SoLightModel - node that defines the lighting model to use when rendering

INHERITS FROM

SoBase > SoFieldContainer > SoNode > SoLightModel

SYNOPSIS

#include <Inventor/nodes/SoLightModel.h> enum Model { c } c } Use only the base (diffuse) object color

c } c } Use Phong lighting model

} Fields from class SoLightModel: c } c } model Methods from class SoLightModel: c } c } SoLightModel()

c } c } getClassTypeId() Methods from class SoNode: c } c } setOverride(SbBool state)

c } c } isOverride() const

c } c } copy(SbBool copyConnections = FALSE) const

c } c } affectsState() const

c } c } getByName(const SbName &name)

c } c } getByName(const SbName &name, SoNodeList &list) Methods from class SoFieldContainer: c } c } setToDefaults()

c } c } hasDefaultValues() const

c } c } fieldsAreEqual(const SoFieldContainer *fc) const

c } c } copyFieldValues(const SoFieldContainer *fc, SbBool copyConnections = FALSE)

c } c } set(const char *fieldDataString)

c } c } get(SbString &fieldDataString)

c } c } getFields(SoFieldList &resultList) const

c } c } getField(const SbName &fieldName) const

c } c } getFieldName(const SoField *field, SbName &fieldName) const

c } c } isNotifyEnabled() const

c } c } enableNotify(SbBool flag) Methods from class SoBase: c } c } ref()

c } c } unref() const

c } c } unrefNoDelete() const

c } c } touch()

c } c } getTypeId() const

c } c } isOfType(SoType type) const

c } c } setName(const SbName &name)

c } c } getName() const

DESCRIPTION

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

FIELDS

c } c } model

Lighting model to use

METHODS

c } c } SoLightModel()

Creates a light model node with default settings. c } c } getClassTypeId()

Returns type identifier for this class.

ACTION BEHAVIOR

SoGLRenderAction, SoCallbackAction

Sets the current lighting model in the state.

FILE FORMAT/DEFAULTS

LightModel {
model	PHONG
}

SEE ALSO

SoBaseColor, SoEnvironment, SoLight, SoMaterial