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

Solid shapes #7

Merged
merged 9 commits into from
Jul 18, 2024
Merged

Solid shapes #7

merged 9 commits into from
Jul 18, 2024

Conversation

Vavassor
Copy link
Owner

#3

Adds solid boxes, spheres, meshes, capsules, and rectangles.

@Vavassor
Copy link
Owner Author

Still to do:

  1. Add documentation comments to the new drawing methods.
  2. Add polygon or depth offset to the solid shaders to prevent z-fighting when mesh colliders overlap the visible mesh of the object.
  3. Move ellipsoid generation to its own static class.
  4. Some index and vertex generation code could be shared between capsules and UV spheres.

@Vavassor
Copy link
Owner Author

The above 4 tasks are finished.

I realized mesh generation was unnecessary for most shapes. Left the generation files in, but unused. They could be useful in the future for a retained mode API.

Now working on:
5. Update the sample scene to display solid shapes.

@Vavassor
Copy link
Owner Author

Screenshot 2024-07-17 214238

@Vavassor Vavassor marked this pull request as ready for review July 18, 2024 02:21
@Vavassor Vavassor merged commit 86a9ea7 into main Jul 18, 2024
@Vavassor Vavassor deleted the solid-shapes branch July 18, 2024 12:34
@Vavassor Vavassor mentioned this pull request Jul 18, 2024
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