Documentation / @ripl/3d / LIGHT_DIRECTION
Variable: LIGHT_DIRECTION ​
constLIGHT_DIRECTION:object
Defined in: 3d/src/constants.ts:6
Pre-normalised light direction vectors for common light positions.
Type Declaration ​
back ​
readonlyback: [0,0,1]
bottom ​
readonlybottom: [0,1,0]
bottomLeft ​
readonlybottomLeft: [-0.707,0.707,0]
bottomRight ​
readonlybottomRight: [0.707,0.707,0]
front ​
readonlyfront: [0,0,-1]
left ​
readonlyleft: [-1,0,0]
right ​
readonlyright: [1,0,0]
top ​
readonlytop: [0,-1,0]
topBack ​
readonlytopBack: [0,-0.707,0.707]
topFront ​
readonlytopFront: [0,-0.707,-0.707]
topLeft ​
readonlytopLeft: [-0.707,-0.707,0]
topLeftBehind ​
readonlytopLeftBehind: [-0.577,-0.577,0.577]
topLeftFront ​
readonlytopLeftFront: [-0.577,-0.577,-0.577]
topRight ​
readonlytopRight: [0.707,-0.707,0]
topRightBehind ​
readonlytopRightBehind: [0.577,-0.577,0.577]
topRightFront ​
readonlytopRightFront: [0.577,-0.577,-0.577]