hexops / mach

zig game engine & graphics toolkit
https://machengine.org
Other
3.36k stars 160 forks source link

core: window resizing doesn't really work on Wayland #1273

Open joshua-holmes opened 1 month ago

joshua-holmes commented 1 month ago

When I run any example - I'll use core-triangle for instance - resizing the window does not resize the "canvas", so it just stretches and squishes everything. Not sure if this is a Wayland issue or Vulkan issue.

image: image

dysphoriac commented 2 weeks ago

i think this is just because the vertex shader for this example is outputting the vertices straight to Normalized Device Coordinates, which are just drawn to the window. the coordinates go from -1 to 1 so when the window is stretched the triangle remains in the same proportion

joshua-holmes commented 2 weeks ago

Would that impact MANGOHUD in this way though?