Adjust scale for z-distance

master
Mark 2023-12-25 10:23:25 -08:00
parent 73c2820af2
commit 10823b9714
Signed by: Mark
GPG Key ID: C6D63995FE72FD80
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ impl GPUState {
// Game dimensions of this sprite post-scale.
// Don't divide by 2, we use this later.
let height = s.size * s.scale;
let height = s.size * s.scale / s.parallax;
let width = height * texture.aspect;
// Don't draw (or compute matrices for)