mirror of
https://github.com/bevyengine/bevy
synced 2024-11-26 14:40:19 +00:00
Fix spiral scaling calculation to not leave a hole
This commit is contained in:
parent
1e4e4f7043
commit
ca62069537
1 changed files with 1 additions and 1 deletions
|
@ -403,7 +403,7 @@ fn fetch_transmissive_background(offset_position: vec2<f32>, frag_coord: vec3<f3
|
|||
}
|
||||
|
||||
// Make each consecutive spiral slightly smaller than the previous one
|
||||
spiral_offset *= 1.0 - (0.5 * f32(current_spiral) / f32(num_spirals));
|
||||
spiral_offset *= 1.0 - (0.5 * f32(current_spiral + 1) / f32(num_spirals));
|
||||
|
||||
// Rotate and correct for aspect ratio
|
||||
let rotated_spiral_offset = (rotation_matrix * spiral_offset) * vec2(1.0, aspect);
|
||||
|
|
Loading…
Reference in a new issue