49#ifndef _SO_LIGHT_MODEL_ELEMENT
50#define _SO_LIGHT_MODEL_ELEMENT
52#include <Inventor/SbBasic.h>
53#include <Inventor/elements/SoReplacedElement.h>
120 static void initClass();
121 static void exitClass();
160 static ViewVectorType getDefaultViewVectorType();
165 static void setViewVectorType(
SoState* state, ViewVectorType viewVectorType);
170 static ViewVectorType getViewVectorType(
SoState* state);
173 void push(
SoState* state)
override;
180 virtual SoElement* copyMatchInfo()
const;
182 virtual void init(
SoState *state);
188 ViewVectorType m_viewVecType;
Abstract base class for all state elements.
Stores the current lighting model.
static Model getDefault()
Returns the default lighting model.
Model
These are the available lighting models.
@ PHYSICALLY_BASED
Physically based lighting.
@ BASE_COLOR
No lighting; just use base color.
@ PER_PIXEL_PHONG
Per-pixel Phong lighting.
@ PER_VERTEX_PHONG
Per-vertex Phong lighting.
static Model get(SoState *state)
Returns current lighting model from the state.
static void set(SoState *state, SoNode *, Model model)
Sets the current lighting model in the state.
static void set(SoState *state, Model model)
Sets the current lighting model in the state.
Abstract base class for all database nodes.