15 lines
177 B
Rust
15 lines
177 B
Rust
use glam::Vec3;
|
|
|
|
pub struct PointlightComponent
|
|
{
|
|
pub offset: Vec3,
|
|
}
|
|
|
|
impl PointlightComponent
|
|
{
|
|
pub fn new(offset: Vec3) -> Self
|
|
{
|
|
Self { offset }
|
|
}
|
|
}
|