From e4f23ffde2272f152d00d82eac6f27d2997baf99 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 22 Apr 2021 14:42:43 -0700 Subject: Update a1-01-matrix-layout.md --- docs/user-guide/a1-01-matrix-layout.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/user-guide/a1-01-matrix-layout.md b/docs/user-guide/a1-01-matrix-layout.md index 239cf0e02..347a7cfb1 100644 --- a/docs/user-guide/a1-01-matrix-layout.md +++ b/docs/user-guide/a1-01-matrix-layout.md @@ -53,7 +53,7 @@ In summary, to make sure your application works correctly on all platforms, you - Leave `defaultMatrixLayoutMode` as default value when creating a Slang session, or specify `SLANG_MATRIX_LAYOUT_ROW_MAJOR`. - Write `mul(Matrix, Vector)` in shader code to transform `Vector` by `Matrix`. -**Option 2 (translation terms in 3,7,11** +**Option 2 (translation terms in 3,7,11)** - Make sure the host code fills in matrices in column-major layout, i.e. translations terms are specified in `m[12], m[13], m[14]` elements. - Set `defaultMatrixLayoutMode` to `SLANG_MATRIX_LAYOUT_COLUMN_MAJOR` when creating a Slang session. -- cgit v1.2.3