Struct amethyst_renderer::Scene
[−]
[src]
pub struct Scene<R: Resources> { pub fragments: Vec<Fragment<R>>, pub point_lights: Vec<PointLight>, pub directional_lights: Vec<DirectionalLight>, pub ambient_light: f32, pub camera: Camera, }
Collection of fragments and lights that make up the scene.
Fields
fragments: Vec<Fragment<R>>
List of renderable fragments.
point_lights: Vec<PointLight>
List of point lights.
directional_lights: Vec<DirectionalLight>
List of directional lights.
ambient_light: f32
Ambient light factor.
camera: Camera
A camera used to render this scene
Methods
impl<R: Resources> Scene<R>
[src]
Trait Implementations
impl<R: Clone + Resources> Clone for Scene<R>
[src]
fn clone(&self) -> Scene<R>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more