Struct three_d::renderer::light::PointLight [−][src]
pub struct PointLight { /* fields omitted */ }
Expand description
A light which shines from the given position in all directions.
Implementations
pub fn new(
context: &Context,
intensity: f32,
color: Color,
position: &Vec3,
attenuation_constant: f32,
attenuation_linear: f32,
attenuation_exponential: f32
) -> ThreeDResult<PointLight>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for PointLight
impl !Send for PointLight
impl !Sync for PointLight
impl Unpin for PointLight
impl !UnwindSafe for PointLight
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more