Documentation / @ripl/3d / LIGHT_DIRECTION
Variable: LIGHT_DIRECTION
constLIGHT_DIRECTION:object
Defined in: 3d/src/core/constants.ts:6
Pre-normalised light direction vectors for common light positions.
Type Declaration
back
readonlyback: [0,0,1]
Light shining from behind the scene.
bottom
readonlybottom: [0,1,0]
Light shining straight up from below.
bottomLeft
readonlybottomLeft: [-0.707,0.707,0]
Light shining from the lower-left.
bottomRight
readonlybottomRight: [0.707,0.707,0]
Light shining from the lower-right.
front
readonlyfront: [0,0,-1]
Light shining from the front (towards the viewer).
left
readonlyleft: [-1,0,0]
Light shining from the left.
right
readonlyright: [1,0,0]
Light shining from the right.
top
readonlytop: [0,-1,0]
Light shining straight down from above.
topBack
readonlytopBack: [0,-0.707,0.707]
Light shining from above and behind.
topFront
readonlytopFront: [0,-0.707,-0.707]
Light shining from above and in front.
topLeft
readonlytopLeft: [-0.707,-0.707,0]
Light shining from the upper-left.
topLeftBehind
readonlytopLeftBehind: [-0.577,-0.577,0.577]
Light shining from the upper-left and behind.
topLeftFront
readonlytopLeftFront: [-0.577,-0.577,-0.577]
Light shining from the upper-left and in front.
topRight
readonlytopRight: [0.707,-0.707,0]
Light shining from the upper-right.
topRightBehind
readonlytopRightBehind: [0.577,-0.577,0.577]
Light shining from the upper-right and behind.
topRightFront
readonlytopRightFront: [0.577,-0.577,-0.577]
Light shining from the upper-right and in front.