From 9ed716954f766f07dcd7fc957c9f4bd290a04852 Mon Sep 17 00:00:00 2001 From: Vecvec <130132884+Vecvec@users.noreply.github.com> Date: Wed, 18 Dec 2024 14:16:58 +1300 Subject: [PATCH] Note way matrix needs to be round. (#6776) --- etc/specs/ray_tracing.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/etc/specs/ray_tracing.md b/etc/specs/ray_tracing.md index b0b50fce56..f23b5305a2 100644 --- a/etc/specs/ray_tracing.md +++ b/etc/specs/ray_tracing.md @@ -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(x, y, z, transform_multiplier); object_to_world: mat4x3, // 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(x, y, z, transform_multiplier); world_to_object: mat4x3, }