mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-23 18:06:34 +11:00
simplify
This commit is contained in:
parent
1f938e5f49
commit
659ab2ff7e
1 changed files with 3 additions and 3 deletions
|
@ -151,9 +151,9 @@ fn main(
|
||||||
let r1 = bitcast<f32>(scene[dd + 6u]);
|
let r1 = bitcast<f32>(scene[dd + 6u]);
|
||||||
let inv_det = 1.0 / (matrx.x * matrx.w - matrx.y * matrx.z);
|
let inv_det = 1.0 / (matrx.x * matrx.w - matrx.y * matrx.z);
|
||||||
let inv_mat = inv_det * vec4(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 = vec2(
|
var inv_tr = inv_det * vec2(
|
||||||
inv_det * (matrx.z * translate.y - matrx.w * translate.x),
|
matrx.z * translate.y - matrx.w * translate.x,
|
||||||
inv_det * (matrx.y * translate.x - matrx.x * translate.y),
|
matrx.y * translate.x - matrx.x * translate.y,
|
||||||
);
|
);
|
||||||
inv_tr -= p0;
|
inv_tr -= p0;
|
||||||
let center1 = p1 - p0;
|
let center1 = p1 - p0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue