logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Action Behavior

SoGLRenderAction,SoCallbackAction
          Sets the current lighting model in the state.

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

SoSFEnummodel
          Lighting model to use

File Format/Defaults

LightModel{modelPHONG}

Inherits From

       SoBase > SoFieldContainer > SoNode > SoLightModel

Methods

SoLightModel()
          Creates a light model node with default settings.

     staticSoTypegetClassTypeId()
          Returns type identifier for this class.

Name

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

See Also

SoBaseColor,SoEnvironment,SoLight,SoMaterialSoLightModel(3IV)()

Synopsis

#include<Inventor/nodes/SoLightModel.h>enumModel{SoLightModel::BASE_COLOR  Use only the base (diffuse) object color
          SoLightModel::PHONG       Use Phong lighting model
     }

          Fields from class SoLightModel:

     SoSFEnummodel

          Methods from class SoLightModel:

                         SoLightModel()staticSoTypegetClassTypeId()

          Methods from class SoNode:

     voidsetOverride(SbBoolstate)SbBoolisOverride()constSoNode*copy(SbBoolcopyConnections=FALSE)constvirtualSbBoolaffectsState()conststaticSoNode*getByName(constSbName&name)staticintgetByName(constSbName&name,SoNodeList&list)

          Methods from class SoFieldContainer:

     voidsetToDefaults()SbBoolhasDefaultValues()constSbBoolfieldsAreEqual(constSoFieldContainer*fc)constvoidcopyFieldValues(constSoFieldContainer*fc,SbBoolcopyConnections=FALSE)SbBoolset(constchar*fieldDataString)voidget(SbString&fieldDataString)virtualintgetFields(SoFieldList&resultList)constvirtualSoField*getField(constSbName&fieldName)constSbBoolgetFieldName(constSoField*field,SbName&fieldName)constSbBoolisNotifyEnabled()constSbBoolenableNotify(SbBoolflag)

          Methods from class SoBase:

     voidref()voidunref()constvoidunrefNoDelete()constvoidtouch()virtualSoTypegetTypeId()constSbBoolisOfType(SoTypetype)constvirtualvoidsetName(constSbName&name)virtualSbNamegetName()const

See Also