shadowing is back, need to figure out how I want to handle these direcitonal lights....

This commit is contained in:
2021-02-20 23:43:40 -08:00
parent c625dc61af
commit e376241aae
4 changed files with 18 additions and 8 deletions

View File

@@ -33,7 +33,7 @@ impl DirectionalLight {
let point3d = Point3::new(pos.x, pos.y, 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 {
fovy: Deg(self.fov).into(),