mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
fix(minimap): remove duplicate shader direction arrow
This commit is contained in:
parent
0b1ea464bb
commit
e7c1000fc2
1 changed files with 2 additions and 13 deletions
|
|
@ -44,19 +44,8 @@ void main() {
|
||||||
|
|
||||||
vec4 mapColor = texture(uComposite, mapUV);
|
vec4 mapColor = texture(uComposite, mapUV);
|
||||||
|
|
||||||
// Player arrow
|
// Player direction arrow is rendered by GameScreen minimap overlays.
|
||||||
float acs = cos(push.arrowRotation);
|
// Keep shader output to map imagery only to avoid duplicate indicators.
|
||||||
float asn = sin(push.arrowRotation);
|
|
||||||
vec2 ac = center;
|
|
||||||
vec2 arrowPos = vec2(-(ac.x * acs - ac.y * asn), ac.x * asn + ac.y * acs);
|
|
||||||
|
|
||||||
vec2 tip = vec2(0.0, -0.04);
|
|
||||||
vec2 left = vec2(-0.02, 0.02);
|
|
||||||
vec2 right = vec2(0.02, 0.02);
|
|
||||||
|
|
||||||
if (pointInTriangle(arrowPos, tip, left, right)) {
|
|
||||||
mapColor = vec4(1.0, 0.8, 0.0, 1.0);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Dark border ring
|
// Dark border ring
|
||||||
float border = smoothstep(0.48, 0.5, dist);
|
float border = smoothstep(0.48, 0.5, dist);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue