Skip to content

Commit

Permalink
Better performance for shaders
Browse files Browse the repository at this point in the history
  • Loading branch information
ClassicOldSong committed Sep 21, 2024
1 parent 80fb7ef commit 92f27fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ vertex_t generate_fullscreen_triangle_vertex(uint vertex_id, float2 subsample_of
float2 rotation_center = { 0.5, 0.5 };
tex_coord = round(rotation_center + mul(rotation_matrix, tex_coord - rotation_center));

if (rotate_texture_steps % 2) {
if (rotate_texture_steps & 1) {
subsample_offset.xy = subsample_offset.yx;
}
}
Expand Down

0 comments on commit 92f27fd

Please sign in to comment.