|
|
@ -33,7 +33,7 @@ impl DirectionalLight {
|
|
|
|
|
|
|
|
|
|
|
|
let point3d = Point3::new(pos.x, pos.y, pos.z);
|
|
|
|
let point3d = Point3::new(pos.x, pos.y, pos.z);
|
|
|
|
let point3d_2 = Point3::new(pos.x, pos.y - 1.0, pos.z);
|
|
|
|
let point3d_2 = Point3::new(pos.x, pos.y - 1.0, pos.z);
|
|
|
|
let mx_view = Matrix4::look_at(point3d, point3d_2, Vector3::unit_y());
|
|
|
|
let mx_view = Matrix4::look_at(point3d, point3d_2, Vector3::unit_z());
|
|
|
|
|
|
|
|
|
|
|
|
let projection = PerspectiveFov {
|
|
|
|
let projection = PerspectiveFov {
|
|
|
|
fovy: Deg(self.fov).into(),
|
|
|
|
fovy: Deg(self.fov).into(),
|
|
|
|