forge
Explore
Log in

Don't you dare go Hollow

niri

Clone
★ 0

0 watching0 forksRustGPL-3.012.1 MiB055a94dIvan Molodetskikh1 year ago2247 commits

resize.frag10 lines, 423 bytesHistoryRawDownload
1vec4 resize_color(vec3 coords_curr_geo, vec3 size_curr_geo) {
2 vec3 coords_tex_prev = niri_geo_to_tex_prev * coords_curr_geo;
3 vec4 color_prev = texture2D(niri_tex_prev, coords_tex_prev.st);
4
5 vec3 coords_tex_next = niri_geo_to_tex_next * coords_curr_geo;
6 vec4 color_next = texture2D(niri_tex_next, coords_tex_next.st);
7
8 vec4 color = mix(color_prev, color_next, niri_clamped_progress);
9 return color;
10}