shadowing is back, need to figure out how I want to handle these direcitonal lights....
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user