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

Normals generation #43

Merged
merged 5 commits into from
May 29, 2017
Merged

Normals generation #43

merged 5 commits into from
May 29, 2017

Conversation

kvark
Copy link
Member

@kvark kvark commented May 29, 2017

Fixes #42
Fixes #27
Fixes #25

r? @csherratt

Note that I'm not certain if this version needs to be published right away. I'd like to clear out the situation with texture coordinates first (#26) as well as polish mint a bit (kvark/mint#3).

Copy link
Collaborator

@csherratt csherratt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

tests/winding.rs Outdated
test(generators::Plane::subdivide(3, 4)
.map(|p| p.map_vertex(|v| [v[0], v[1], 1f32])));
.map(|p| p.map_vertex(|mut v| {v.pos[2] = 1.; v})));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The trait MapToVertices does this a little more elegantly.

https://docs.rs/genmesh/0.4.3/genmesh/trait.MapToVertices.html

.vertex(|mut v| {v.pos[2] = 1.; v}));

@kvark
Copy link
Member Author

kvark commented May 29, 2017

Thanks @csherratt !
I've applied the fix and decided to publish this version.

@kvark kvark merged commit 44d6123 into gfx-rs:master May 29, 2017
@kvark kvark deleted the mint branch May 29, 2017 20:39
@kvark kvark mentioned this pull request Jun 3, 2020
10 tasks
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.

2 participants