summaryrefslogtreecommitdiff
path: root/src/platform.h
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-01-28 02:06:05 +0100
committerskal <pascal.massimino@gmail.com>2026-01-28 02:06:05 +0100
commit5bbe2204f1d30e99ee442e287167ef14ad51af75 (patch)
treeed4a30ef91ed9e928bda0af07f44c8ecd0a9d76a /src/platform.h
parent164c471fb9488f7013be0bcaef7f790020aee916 (diff)
fix(gpu): Add aspect ratio correction to shader
Implements aspect ratio correction to prevent the pulsating heptagon from being distorted when the window is resized. - The main loop now queries the framebuffer size and calculates the aspect ratio each frame. - This aspect ratio is passed to the GPU via an updated uniform buffer. - The vertex shader in shader.wgsl now uses the aspect ratio to correctly scale the X coordinates of the vertices, ensuring the shape remains proportional.
Diffstat (limited to 'src/platform.h')
0 files changed, 0 insertions, 0 deletions