should a directional light even have roll?

This commit is contained in:
2021-02-13 23:28:45 -08:00
parent 9665a70bac
commit 9824c1ad61
3 changed files with 29 additions and 13 deletions

View File

@@ -265,10 +265,15 @@ pub fn entity_loading(world: &mut World, renderer: &mut Renderer) {
let light_mesh = renderer.load_mesh_to_buffer("./resources/light.obj");
let light_entity: Entity = world.push((
cgmath::Point3 {
x: 5.0 as f32,
y: 5.0 as f32,
z: 5.0 as f32,
Position {
x: 0.0,
y: 0.0,
z: 0.0,
rot: Euler {
x: Deg(0.0),
y: Deg(-25.0),
z: Deg(0.0)
}
},
Color {
r: 1.0,