Skip to content

Commit

Permalink
Remove letters in axis arrows
Browse files Browse the repository at this point in the history
They didn't look good.
  • Loading branch information
guillaumechereau committed Jul 2, 2024
1 parent 81e3761 commit 3541267
Showing 1 changed file with 0 additions and 47 deletions.
47 changes: 0 additions & 47 deletions src/goxel.c
Original file line number Diff line number Diff line change
Expand Up @@ -975,53 +975,6 @@ static void render_axis_arrows(const float viewport[4])
vec3_mul(AXIS[i], size * 0.4, l);
mat4_mul_vec3(rot, l, l);
vec3_add(b, l, l);

// X letter
if (i == 0) {
float t1[3], t2[3];

vec3_set(t1, l[0] - 3, l[1] + 7, l[2]);
vec3_set(t2, l[0] + 3, l[1] - 7, l[2]);
render_line(&goxel.rend, t1, t2, color, EFFECT_PROJ_SCREEN);

vec3_set(t1, l[0] + 3, l[1] + 7, l[2]);
vec3_set(t2, l[0] - 3, l[1] - 7, l[2]);
render_line(&goxel.rend, t1, t2, color, EFFECT_PROJ_SCREEN);
}

// Y letter
if (i == 1) {
float t1[3], t2[3];

vec3_set(t1, l[0] - 3, l[1] + 7, l[2]);
vec3_set(t2, l[0], l[1], l[2]);
render_line(&goxel.rend, t1, t2, color, EFFECT_PROJ_SCREEN);

vec3_set(t1, l[0] + 3, l[1] + 7, l[2]);
vec3_set(t2, l[0], l[1], l[2]);
render_line(&goxel.rend, t1, t2, color, EFFECT_PROJ_SCREEN);

vec3_set(t1, l[0], l[1] - 7, l[2]);
vec3_set(t2, l[0], l[1], l[2]);
render_line(&goxel.rend, t1, t2, color, EFFECT_PROJ_SCREEN);
}

// Z letter
if (i == 2) {
float t1[3], t2[3];

vec3_set(t1, l[0] - 3, l[1] + 7, l[2]);
vec3_set(t2, l[0] + 3, l[1] + 7, l[2]);
render_line(&goxel.rend, t1, t2, color, EFFECT_PROJ_SCREEN);

vec3_set(t1, l[0] + 3, l[1] + 7, l[2]);
vec3_set(t2, l[0] - 3, l[1] - 7, l[2]);
render_line(&goxel.rend, t1, t2, color, EFFECT_PROJ_SCREEN);

vec3_set(t1, l[0] - 3, l[1] - 7, l[2]);
vec3_set(t2, l[0] + 3, l[1] - 7, l[2]);
render_line(&goxel.rend, t1, t2, color, EFFECT_PROJ_SCREEN);
}
}
}

Expand Down

0 comments on commit 3541267

Please sign in to comment.