f32::fract
functions differently compared to GLSL; thoughts on documentation updates and an example showing the difference?
#211
Unanswered
Steveplays28
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://godbolt.org/z/v9cj4MaGW
This also extends to various glam types:
glam::f32::Vec2::fract
glam::f32::Vec3::fract
glam::f32::Vec4::fract
Is it ok if I PR documentation updates and if I also add a shader crate demonstrating this difference, with the following code (and an example usage of this trait) alongside the existing examples?
(glam has
glam::f32::VecN::fract_gl
types with documentation explaining the differences, butf32
does not, hence the above trait.)I'd also like to add these methods to clippy's disallowed methods check in the examples, to prevent this pitfall.
Beta Was this translation helpful? Give feedback.
All reactions