SODIRECTIONALLIGHT(3iv)
π‘ SoDirectionalLight β it's giving main character energy
okay bestie, welcome to the manual page for SoDirectionalLight, straight out of the SoDirectionalLight(3IV) manual π
. grab a strawberry π, sit down, and let's get into it.
β¨ NAME β¨
SoDirectionalLight β the node that is a directional light source. like, it's literally a light that shines, no cap.
𧬠INHERITS FROM π§¬
the family tree goes crazy:
SoBase > SoFieldContainer > SoNode > SoLight > SoDirectionalLight
so yes, it inherited every single one of those genes π
π SYNOPSIS π
first things first, you gotta include the header or nothing works:
#include <Inventor/nodes/SoDirectionalLight.h>
Fields from class SoDirectionalLight
SoSFVec3f direction
Fields from class SoLight
SoSFBool on
SoSFFloat intensity
SoSFColor color
Methods from class SoDirectionalLight
SoDirectionalLight()
static SoType getClassTypeId()
Methods from class SoNode
void setOverride(SbBool state)
SbBool isOverride() const
SoNode * copy(SbBool copyConnections = FALSE) const
virtual SbBool affectsState() const
static SoNode * getByName(const SbName &name)
static int getByName(const SbName &name, SoNodeList &list)
Methods from class SoFieldContainer
void setToDefaults()
SbBool hasDefaultValues() const
SbBool fieldsAreEqual(const SoFieldContainer *fc) const
void copyFieldValues(const SoFieldContainer *fc, SbBool
copyConnections = FALSE)
SbBool set(const char *fieldDataString)
void get(SbString &fieldDataString)
virtual int getFields(SoFieldList &resultList) const
virtual SoField * getField(const SbName &fieldName) const
SbBool getFieldName(const SoField *field, SbName &fieldName)
const
SbBool isNotifyEnabled() const
SbBool enableNotify(SbBool flag)
Methods from class SoBase
void ref()
void unref() const
void unrefNoDelete() const
void touch()
virtual SoType getTypeId() const
SbBool isOfType(SbType type) const
virtual void setName(const SbName &name)
virtual SbName getName() const
π DESCRIPTION π
so this node defines a directional light source β meaning it illuminates along rays that are parallel to a given 3-dimensional vector. parallel rays, every single one, no drama, no diverging. iconic behavior honestly β¨
π FIELDS π
SoSFVec3fdirectionβ the illumination direction vector. that's the vibe, that's the direction it shines π«
π οΈ METHODS π οΈ
SoDirectionalLight()β creates a directional light source node with default settings. a fresh baby light, defaults and all πΌstatic SoType getClassTypeId()β returns the type identifier for this class. iykyk πͺͺ
π₯ ACTION BEHAVIOR π₯
SoGLRenderAction
Activates this light (if so specified) during traversal. All shape nodes that come after this light in the scene graph are illuminated by this light. The light's direction is affected by the current transformation.
so like β order matters bestie. if a shape shows up after this light, it gets lit. and the transformation is lowkey in charge of where the direction actually points. don't forget it π
π FILE FORMAT/DEFAULTS π
DirectionalLight {
on TRUE
intensity 1
color 1 1 1
direction 0 0 -1
}
look at those defaults. pristine. immaculate. direction 0 0 -1 is the moment π«Ά
π SEE ALSO π
SoPointLightSoSpotLight
and that's the whole page bestie, you ate that πβ¨πΈ
this was the SoDirectionalLight(3IV) manual page, footer and all β signed, sealed, and delivered from SoDirectionalLight(3IV)(). go light something up π¦π
π¦ where this page comes from
- debian bookworm: inventor-doc 2.1.5-10+dfsg-2 Β· LGPL-2.0-or-later
- debian trixie: inventor-doc 2.1.6+ds-2 Β· LGPL-2.0-or-later
- ubuntu jammy: inventor-doc 2.1.5-10-24
- ubuntu noble: inventor-doc 2.1.5-10+dfsg-2.1build2 Β· LGPL-2.0-or-later
- ubuntu questing: inventor-doc 2.1.6+ds-2
- ubuntu resolute: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- ubuntu stonking: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms