mirror of
https://gitlab.com/veloren/veloren
synced 2026-08-16 16:26:07 -04:00
Fix far plane.
This commit is contained in:
parent
7dd06da34c
commit
50a64d927e
1 changed files with 1 additions and 1 deletions
|
|
@ -1553,7 +1553,7 @@ impl Scene {
|
|||
// let z_1 = z_0 + d;
|
||||
// Vague idea: project d from the light view back to the camera view (undoing the
|
||||
// tilt by γ).
|
||||
let z_1 = /*z_n*/z_0 + d * sin_gamma;
|
||||
let z_1 = /*z_n*/z_0 + d/* * sin_gamma*/;
|
||||
let w_l_y = /* z_f - z_n */d;/*/*f64::from(camera::FAR_PLANE - camera::NEAR_PLANE)*//*(z_f - z_n)*/d * scalar_fov.cos();*/
|
||||
// let z_f = z_n + d;
|
||||
// let near_dist = directed_near;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue