26 fastuidraw_align_compute_Q_adjoint_Q(in
vec3 pclip_p,
27 out mat2 Q, out mat2 adjQ)
30 clip =
vec3(fastuidraw_viewport_pixels, 1.0) * pclip_p;
39 adjQ = mat2( Q[1][1], -Q[0][1], -Q[1][0], Q[0][0]);
60 fastuidraw_align_compute_Q_adjoint_Q(clip_p, Q, adjQ);
62 vec2 n_screen, t_screen, t;
65 t_screen = fastuidraw_viewport_pixels * (Q * t);
66 n_screen =
vec2(t_screen.y, -t_screen.x);
75 return adjQ * (fastuidraw_viewport_recip_pixels * n_screen);
mat3 fastuidraw_item_matrix
vec2 fastuidraw_align_normal_to_screen(in vec3 clip_p, in vec2 n)