diff options
| author | LLLL Colonq <llll@colonq> | 2025-01-18 20:46:08 -0500 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2025-01-18 20:46:08 -0500 |
| commit | 6c00c069ccf08ef5e577c16acc78a5b1f53a0f8f (patch) | |
| tree | ca0cf7a5e042883cfa7fe95725d8eda35860d56e /src/shader.rs | |
| parent | 82d1c94d999654bda5d40108393eade80b77342c (diff) | |
Rework font rendering, configurable resolution
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, ), ) |
