summaryrefslogtreecommitdiff
path: root/src/effects/rotating_cube_effect.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects/rotating_cube_effect.h')
-rw-r--r--src/effects/rotating_cube_effect.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/effects/rotating_cube_effect.h b/src/effects/rotating_cube_effect.h
index 920be5c..fb321fa 100644
--- a/src/effects/rotating_cube_effect.h
+++ b/src/effects/rotating_cube_effect.h
@@ -29,12 +29,9 @@ class RotatingCube : public Effect {
float aspect_ratio;
float _pad;
- // Transpose matrices: mini_math is row-major, WGSL expects column-major.
static Uniforms make(const mat4& vp, const vec4& cam_pos_time,
const vec4& p, const vec2& res, float asp) {
- return {mat4::transpose(vp), mat4::transpose(vp.inverse()),
- cam_pos_time, p,
- res, asp};
+ return {vp, vp.inverse(), cam_pos_time, p, res, asp};
}
};
static_assert(sizeof(Uniforms) == 176, "Uniforms size mismatch");