Go to: Related nodes. Attributes.

This class contains the "shape" information for spot lights.

This node is MP safe

Node nameParentsClassificationMFn typeCompatible function sets
spotLightnonExtendedLightShapeNodelight:drawdb/light/spotLightkSpotLightkBase
kNamedObject
kDependencyNode
kDagNode
kShape
kLight
kNonAmbientLight
kNonExtendedLight
kSpotLight

Related nodes

camera, light, dropoffLocator, ambientLight, nonAmbientLightShapeNode, nonExtendedLightShapeNode, areaLight, directionalLight, pointLight

Attributes (33)

barnDoors, bottomBarnDoor, coneAngle, dropoff, endDistance1, endDistance2, endDistance3, farPointWorld, farPointWorldX, farPointWorldY, farPointWorldZ, fogGeometry, fogIntensity, fogSpread, leftBarnDoor, lightGlow, objectType, penumbraAngle, pointWorld, pointWorldX, pointWorldY, pointWorldZ, psIllumSamples, rayDirection, rayDirectionX, rayDirectionY, rayDirectionZ, rightBarnDoor, startDistance1, startDistance2, startDistance3, topBarnDoor, useDecayRegions

Long name (short name)TypeDefaultFlags
coneAngle (ca) angle (double)40.0degoutputinputconnectablestorablekeyable
The cone angle.
penumbraAngle (pa) angle (double)0.0degoutputinputconnectablestorablekeyable
The penumbra angle.
dropoff (dro) double0.0outputinputconnectablestorablekeyable
The dropoff.
barnDoors (bd) boolfalseoutputinputconnectablestorable
Are barndoors on?
leftBarnDoor (lbd) angle (double)20.0degoutputinputconnectablestorable
The left barn door angle.
rightBarnDoor (rbd) angle (double)20.0degoutputinputconnectablestorable
The right barn door angle.
topBarnDoor (tbd) angle (double)20.0degoutputinputconnectablestorable
The top barn door angle.
bottomBarnDoor (bbd) angle (double)20.0degoutputinputconnectablestorable
The bottom barn door angle.
useDecayRegions (udr) boolfalseoutputinputconnectablestorable
Are decayregions on?
startDistance1 (sd1) distance (float)1.0cmoutputinputconnectablestorable
The start distance of decay region 1.
endDistance1 (ed1) distance (float)2.0cmoutputinputconnectablestorable
The end distance of decay region 1.
startDistance2 (sd2) distance (float)3.0cmoutputinputconnectablestorable
The start distance of decay region 2.
endDistance2 (ed2) distance (float)6.0cmoutputinputconnectablestorable
The end distance of decay region 2.
startDistance3 (sd3) distance (float)8.0cmoutputinputconnectablestorable
The start distance of decay region 3.
endDistance3 (ed3) distance (float)10.0cmoutputinputconnectablestorable
The end distance of decay region 3.
fogSpread (fsp) float1.0outputinputconnectablestorable
The fog spread.
fogIntensity (fin) float1.0outputinputconnectablestorable
The fog intensity.
objectType (ot) charTrenderableObjectType::kSurfaceinputconnectablestorable
The type of object being lit (volume or surface).
pointWorld (pw) float31.0, 1.0, 1.0inputconnectablestorable
The start point of the interval produced by the viewing ray and the shadow map, in world space.
pointWorldX (tx) float0.0inputconnectablestorable
The x-component of the world position.
pointWorldY (ty) float0.0inputconnectablestorable
The y-component of the world position.
pointWorldZ (tz) float0.0inputconnectablestorable
The z-component of the world position.
farPointWorld (fw) float31.0, 1.0, 1.0inputconnectablestorable
The end point of the interval produced by the viewing ray and the shadow map, in world space.
farPointWorldX (fx) float0.0inputconnectablestorable
The x-component of the world far-position.
farPointWorldY (fy) float0.0inputconnectablestorable
The y-component of the world far-position.
farPointWorldZ (fz) float0.0inputconnectablestorable
The z-component of the world far-position.
rayDirection (rad) float3inputconnectable
The Ray direction.
rayDirectionX (rdx) float0.0inputconnectable
The x component of the direction.
rayDirectionY (rdy) float0.0inputconnectable
The y component of the direction.
rayDirectionZ (rdz) float0.0inputconnectable
The z component of the direction.
fogGeometry (fg) Messagen/aoutputinputconnectable
Connect this to the fog geometry.
lightGlow (lg) Messagen/aoutputinputconnectable
Connect this to the light glow.
psIllumSamples (pis) short1outputinputconnectablestorable
The number of particle illumination samples