Skip to content

Commit

Permalink
Fixup vary_to test
Browse files Browse the repository at this point in the history
  • Loading branch information
jdahlstrom committed Jan 11, 2025
1 parent fe4840c commit ce56786
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/src/render/raster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ mod tests {
vs: Vary::vary_to(
(pt3(8.0, 42.0, 1.0 / w0), 3.0f32.z_div(w0)),
(pt3(16.0, 42.0, 1.0 / w1), 5.0f32.z_div(w1)),
8,
9,
),
};

Expand All @@ -356,9 +356,9 @@ mod tests {
];
let mut x = 8.0;

for ((Frag { pos, var }, z), v) in sl.fragments().zip(zs).zip(vars) {
assert_approx_eq!(pos, pt3(x, 42.0, z.recip()));
assert_approx_eq!(var, v);
for ((frag, z), v) in sl.fragments().zip(zs).zip(vars) {
assert_approx_eq!(frag.pos, pt3(x, 42.0, z.recip()));
assert_approx_eq!(frag.var, v);

x += 1.0;
}
Expand Down

0 comments on commit ce56786

Please sign in to comment.