Adjust scale for z-distance
parent
73c2820af2
commit
10823b9714
|
@ -223,7 +223,7 @@ impl GPUState {
|
||||||
|
|
||||||
// Game dimensions of this sprite post-scale.
|
// Game dimensions of this sprite post-scale.
|
||||||
// Don't divide by 2, we use this later.
|
// 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;
|
let width = height * texture.aspect;
|
||||||
|
|
||||||
// Don't draw (or compute matrices for)
|
// Don't draw (or compute matrices for)
|
||||||
|
|
Loading…
Reference in New Issue