Skip to content

Commit 1939adb

Browse files
committed
fix: Properly invert transform in "Function Visualizer" example
1 parent dbbd27e commit 1939adb

File tree

1 file changed

+4
-1
lines changed
  • apps/typegpu-docs/src/content/examples/rendering/function-visualizer

1 file changed

+4
-1
lines changed

apps/typegpu-docs/src/content/examples/rendering/function-visualizer/index.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,10 @@ async function tryRecreateComputePipeline(
429429
}
430430

431431
function queuePropertiesBufferUpdate() {
432-
properties.inverseTransformation = mat4.inverse(properties.transformation);
432+
properties.inverseTransformation = mat4.inverse(
433+
properties.transformation,
434+
d.mat4x4f(),
435+
);
433436
propertiesBuffer.write(properties);
434437
}
435438

0 commit comments

Comments
 (0)