fix: Viewport.getDepth() for y == 0
This commit is contained in:
@@ -145,9 +145,6 @@ public class Viewport {
|
|||||||
* and the map plane
|
* and the map plane
|
||||||
*/
|
*/
|
||||||
protected float getDepth(float y) {
|
protected float getDepth(float y) {
|
||||||
if (y == 0)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
// origin is moved by VIEW_DISTANCE
|
// origin is moved by VIEW_DISTANCE
|
||||||
double cx = VIEW_DISTANCE;
|
double cx = VIEW_DISTANCE;
|
||||||
// 'height' of the ray
|
// 'height' of the ray
|
||||||
|
|||||||
Reference in New Issue
Block a user