pub struct PointLight;Expand description
class PointLight extends Light.
Implementations§
Source§impl PointLight
impl PointLight
Sourcepub fn new(color: Color, intensity: f64, distance: f64) -> ObjectRef
pub fn new(color: Color, intensity: f64, distance: f64) -> ObjectRef
new PointLight( color, intensity, distance = 0, decay = 2 ), as a
scene-graph ObjectRef. object.is_light is what
Renderer._projectObject() branches on, so the node is collected into
RenderList.lights and never drawn — while anything added under it (the
bulb sphere of webgpu_lights_phong) is an ordinary child and draws
through the walk.
this.shadow = new PointLightShadow() — present whether or not the
light casts; Object3D.castShadow is the switch.
Auto Trait Implementations§
impl Freeze for PointLight
impl RefUnwindSafe for PointLight
impl Send for PointLight
impl Sync for PointLight
impl Unpin for PointLight
impl UnsafeUnpin for PointLight
impl UnwindSafe for PointLight
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more