remove logging

This commit is contained in:
veclavtalica 2025-03-11 01:54:36 +03:00
parent 37e46e9a7e
commit b52ecaeaa0

View File

@ -86,14 +86,8 @@ static inline Vec2 project_texture_coordinate(Vec2 origin, Vec3 plane, Vec3 poin
Vec3 right = vec3_norm(vec3_cross(plane, (Vec3){0,1,0}));
if (isnanf(right.x)) right = vec3_norm(vec3_cross(plane, (Vec3){1,0,0}));
Vec3 up = vec3_norm(vec3_cross(plane, right));
log_vec3(right, "right");
log_vec3(up, "up");
Vec3 proj_origin = vec3_add(vec3_scale(right, origin.x), vec3_scale(up, origin.y));
log_vec3(proj_origin, "proj_origin");
Vec3 local = vec3_sub(proj_origin, point);
log_vec3(local, "local");
log_float(vec3_dot(local, right) / scale, "dot_x");
log_float(vec3_dot(local, up) / scale, "dot_y");
return (Vec2){ vec3_dot(local, right) * scale, vec3_dot(local, up) * scale };
}