geometry curling back on itself #24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
in perspective projection geometry will fold onto itself when advancing the camera along the x axis
this was happening because we didn't take the signs of the vector's components in urot, as if they are opposed, the resulting angle from asin should be negated
currently this was fixed by bodging a negation on negative x values, but really this should depend on the xor of the signs being positive (or multiplying
sgn(vector.x) * sgn(vector.y))also we were reseting the norm to 1 if it were 0 so as to avoid dividing by zero in the call to asin, which explains why the geometry was mirrored on the x axis and didn't just disappear