diff options
Diffstat (limited to 'src/shader.rs')
| -rw-r--r-- | src/shader.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader.rs b/src/shader.rs index 46deb82..cbaf3ee 100644 --- a/src/shader.rs +++ b/src/shader.rs @@ -210,8 +210,8 @@ impl Shader { glam::Vec3::new(halfwidth, halfheight, 1.0), rot.clone(), glam::Vec3::new( - -context::RENDER_WIDTH / 2.0 + pos.x + halfwidth, - context::RENDER_HEIGHT / 2.0 - pos.y - halfheight, + -ctx.render_width / 2.0 + pos.x + halfwidth, + ctx.render_height / 2.0 - pos.y - halfheight, 0.0, ), ) |
