Revert "Remove unnecessary scaling and then un-scaling of through-mode Z coordinates"

Didn't mean to commit this, it was supposed to go in a PR.

This reverts commit 6d4c70c67d.
This commit is contained in:
Henrik Rydgård committed 2026-06-03 17:18:10 +02:00
1 parent 87c0146eaa
commit 2ea8a9ac1f
3 files changed
+17 -6

No files matched your search

+2 -1
View File
@@ -350,7 +350,8 @@ ClipVertexData TransformUnit::ReadVertex(const VertexReader &vreader, const Tran
ClipVertexData vertex;
ModelCoords pos;
vreader.ReadPosThrough(pos.AsArray());
// VertexDecoder normally scales z, but we want it unscaled.
vreader.ReadPosThroughZ16(pos.AsArray());
static Vec3Packedf lastTC;
if (state.readUV) {