Skip to content

Commit e9d7e4d

Browse files
committed
compress
1 parent 25a1bd4 commit e9d7e4d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/progressed/graphics/draw3d/Perspective.java

+1-5
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,7 @@ public static Vec3 scaleToViewport(float x, float y, float z){
125125
y -= cy;
126126
float zz = cameraZ - z;
127127

128-
float vx = x / zz * viewportOffset, //Position scaled to near plane.
129-
vy = y / zz * viewportOffset;
130-
float vz = viewportZ();
131-
132-
return scalingPos.set(vx, vy, vz);
128+
return scalingPos.set(x / zz * viewportOffset, y / zz * viewportOffset, viewportZ());
133129
}
134130

135131
public static float dstToViewport(float x, float y, float z){

0 commit comments

Comments
 (0)