Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ vertex_t generate_fullscreen_triangle_vertex(uint vertex_id, float2 subsample_of
sin(rotation_radians), cos(rotation_radians) };
float2 rotation_center = { 0.5, 0.5 };
tex_coord = round(rotation_center + mul(rotation_matrix, tex_coord - rotation_center));
// Swap the xy offset coordinates if the texture is rotated an odd number of times.
if (rotate_texture_steps & 1) {
Comment thread
ReenigneArcher marked this conversation as resolved.

Comment thread
ReenigneArcher marked this conversation as resolved.
Outdated
Comment thread
ReenigneArcher marked this conversation as resolved.
Outdated
if (rotate_texture_steps % 2) {
subsample_offset.xy = subsample_offset.yx;
}
}
Expand Down