Improve cropping logic in resize shader example

The previous logic failed to the left of the geometry.
This commit is contained in:
Ivan Molodetskikh
2024-04-22 22:37:47 +04:00
parent 1681ed16d9
commit 5299590290
2 changed files with 11 additions and 9 deletions
@@ -1,3 +1,4 @@
void main() {
vec3 coords_curr_geo = niri_input_to_curr_geo * vec3(niri_v_coords, 1.0);
vec3 size_curr_geo = niri_input_to_curr_geo * vec3(niri_size, 1.0);