WLJS LogoWLJS Notebook

PointLight

Supports Offload
PointLight[col_RGBColor, opts___]
PointLight[col_RGBColor, position_, opts___]

represents an artificial point-light source at the given position and parameters provided by options

Graphics3D[{Black,Polygon[ {{-5,5,-1}, {5,5,-1}, {5,-5,-1}, {-5,-5,-1}}], White, Cuboid[{-1,-1,-1}, {1,1,1}], PointLight[Red, {1.5075, 4.1557, 2.6129}, "Intensity"->100], PointLight[Cyan, {-2.4489, -1.9012, 2.8386}, "Intensity"->100]}, "Lighting"->None]

In the case of "PathTracing" renderer, point light can only work if "MultipleImportanceSampling" is enabled in the options of Graphics3D

Options

"Intensity"

An integer number in arbitrary units that sets the brightness of the source

"Decay"

"ShadowBias"

See THREE.js docs

Transitions and updates

Only position field supports updates.

On this page