mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
fix(ui): correct minimap center compass arrow orientation
This commit is contained in:
parent
38210ec186
commit
448560a0d2
1 changed files with 4 additions and 3 deletions
|
|
@ -48,9 +48,10 @@ void main() {
|
||||||
vec2 local = center; // [-0.5, 0.5] around minimap center
|
vec2 local = center; // [-0.5, 0.5] around minimap center
|
||||||
float ac = cos(push.arrowRotation);
|
float ac = cos(push.arrowRotation);
|
||||||
float as = sin(push.arrowRotation);
|
float as = sin(push.arrowRotation);
|
||||||
vec2 tip = vec2(0.0, 0.09);
|
// TexCoord Y grows downward on screen; use negative Y so 0-angle points North (up).
|
||||||
vec2 left = vec2(-0.045, -0.02);
|
vec2 tip = vec2(0.0, -0.09);
|
||||||
vec2 right = vec2( 0.045, -0.02);
|
vec2 left = vec2(-0.045, 0.02);
|
||||||
|
vec2 right = vec2( 0.045, 0.02);
|
||||||
mat2 rot = mat2(ac, -as, as, ac);
|
mat2 rot = mat2(ac, -as, as, ac);
|
||||||
tip = rot * tip;
|
tip = rot * tip;
|
||||||
left = rot * left;
|
left = rot * left;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue