Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge to master #187

Merged
merged 31 commits into from
Sep 18, 2024
Merged

Merge to master #187

merged 31 commits into from
Sep 18, 2024

Conversation

jdahlstrom
Copy link
Owner

No description provided.

Add Utah teapot and Stanford bunny models to the set of objects displayed.
Allow lower precision with micromath and fallback.
The generic Mul for Scalar impl violated orphan rules, but used to be
accepted by rustc due to a bug. Replace the impl with separate concrete
impls for f32, i32, and u32.

See rust-lang/rust#124559 for more info.
* Change VecN type aliases to always be in Real<N, B>, generic over B.
  This better matches their intended semantics as specifically Cartesian
  vectors. For example, SphericalVec and Vec3 are now always distinct types.
  Also, absurd types like Vec3<Real<2>> are no longer possible.

* Change vecN functions to be generic over B, matching their respective VecN.
  This removes the need for most uses of .to(), at the expense of sometimes
  being unable to infer B.

* Turn generic Vec4 to ProjVec4 specifically, with little need for Cartesian
  4-vectors at least for now. Remove vec4 functions as unneeded.
Technically these should be called "points".
This adds add/sub operators to Vec2u.
Remove the with_mode constructor.
The seven-parameter render() function calls were not exactly the best.
Add type aliases and move object creation into functions
Take it as a parameter instead. Also rename all variables named `gen`
for compatibility with Rust 2024 which makes `gen` a keyword.
Yields pairs of samples, naturally.
Parameterizing on the fragment type was needlessly generic.
@jdahlstrom jdahlstrom merged commit e2977cb into master Sep 18, 2024
1 check passed
@jdahlstrom jdahlstrom deleted the merge-to-master branch September 18, 2024 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant