More cleanup

Missed a few cases (and I'm still not 100% sure I've got them all).
This commit is contained in:
Raph Levien 2022-11-25 09:51:11 -08:00
parent 94a310a245
commit 09aa38799d
3 changed files with 3 additions and 3 deletions

View file

@ -61,7 +61,7 @@ fn main(
let path_ix = sh_path_ix[local_id.x];
let path_bbox = path_bboxes[path_ix];
let parent_ix = sh_parent[local_id.x] + wg_id.x * WG_SIZE;
let bbox = vec4<f32>(f32(path_bbox.x0), f32(path_bbox.y0), f32(path_bbox.x1), f32(path_bbox.y1));
let bbox = vec4(f32(path_bbox.x0), f32(path_bbox.y0), f32(path_bbox.x1), f32(path_bbox.y1));
clip_out[global_id.x] = ClipEl(parent_ix, bbox);
}
}

View file

@ -150,7 +150,7 @@ fn main(
let r0 = bitcast<f32>(scene[dd + 5u]);
let r1 = bitcast<f32>(scene[dd + 6u]);
let inv_det = 1.0 / (matrx.x * matrx.w - matrx.y * matrx.z);
let inv_mat = inv_det * vec4<f32>(matrx.w, -matrx.y, -matrx.z, matrx.x);
let inv_mat = inv_det * vec4(matrx.w, -matrx.y, -matrx.z, matrx.x);
var inv_tr = inv_mat.xz * translate.x + inv_mat.yw * translate.y;
inv_tr += p0;
let center1 = p1 - p0;

View file

@ -61,7 +61,7 @@ fn soft_light(cb: vec3<f32>, cs: vec3<f32>) -> vec3<f32> {
return select(
cb + (2.0 * cs - 1.0) * (d - cb),
cb - (1.0 - 2.0 * cs) * cb * (1.0 - cb),
(cs <= vec3(0.5))
cs <= vec3(0.5)
);
}