We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0aba62 commit 9e7a0b0Copy full SHA for 9e7a0b0
src/mesh/mod.rs
@@ -49,12 +49,11 @@ impl Mesh {
49
// bool(u32) is false if 0u else true
50
// f32(bool) is 1.0 if true else 0.0
51
// * 2.0 - 1.0 remaps 0.0 or 1.0 to -1.0 or 1.0 respectively
52
- (if self.flags & MESH_FLAGS_SIGN_DETERMINANT_MODEL_3X3_BIT != 0 {
+ if self.flags & MESH_FLAGS_SIGN_DETERMINANT_MODEL_3X3_BIT != 0 {
53
1.0
54
} else {
55
- 2.0
56
- } * 2.0
57
- - 1.0)
+ -1.0
+ }
58
}
59
60
pub fn mesh_tangent_local_to_world(&self, model: Mat4, vertex_tangent: Vec4) -> Vec4 {
0 commit comments