Skip to content

Commit

Permalink
Note way matrix needs to be round. (#6776)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vecvec authored Dec 18, 2024
1 parent 8f2f5e9 commit 9ed7169
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions etc/specs/ray_tracing.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,13 @@ struct RayIntersection {
front_face: bool,
// Matrix for converting from object-space to world-space.
//
// Bug: This matrix need to be transposed currently otherwise it will not work properly.
// This matrix needs to be on the left side of the multiplication. Using it the other way round will not work.
// Use it this way: `let transformed_vector = intersecion.object_to_world * vec4<f32>(x, y, z, transform_multiplier);
object_to_world: mat4x3<f32>,
// Matrix for converting from world-space to object-space
//
// Bug: This matrix need to be transposed currently otherwise it will not work properly.
// This matrix needs to be on the left side of the multiplication. Using it the other way round will not work.
// Use it this way: `let transformed_vector = intersecion.world_to_object * vec4<f32>(x, y, z, transform_multiplier);
world_to_object: mat4x3<f32>,
}
Expand Down

0 comments on commit 9ed7169

Please sign in to comment.