diff options
author | Vas Crabb <vas@vastheman.com> | 2016-10-23 22:35:45 +1100 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2016-10-23 22:36:24 +1100 |
commit | 129c0feeed5e3d66e489f3445f4390cd139658aa (patch) | |
tree | ffb0dac37430c2dc1e005b4f9e66d5911337e882 /src/mame/video/chihiro.cpp | |
parent | f1fefd70559e5ce405ddf74f387e372727c34963 (diff) |
srcclean (nw)
Diffstat (limited to 'src/mame/video/chihiro.cpp')
-rw-r--r-- | src/mame/video/chihiro.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/video/chihiro.cpp b/src/mame/video/chihiro.cpp index 5b0cf80bc27..33ab36bece0 100644 --- a/src/mame/video/chihiro.cpp +++ b/src/mame/video/chihiro.cpp @@ -3489,12 +3489,12 @@ int nv2a_renderer::geforce_exec_method(address_space & space, uint32_t chanel, u first create a row vector with components (x,y,z,1) then multiply the vector by the matrix transformed = rowvector * matrix in direct3d the matrix is stored as the sequence (first digit row, second digit column) - 11 12 13 14 - 21 22 23 24 - 31 32 33 34 - 41 42 43 44 + 11 12 13 14 + 21 22 23 24 + 31 32 33 34 + 41 42 43 44 but it is sent transposed as the sequence - 11 21 31 41 12 22 32 42 13 23 33 43 14 24 34 44 + 11 21 31 41 12 22 32 42 13 23 33 43 14 24 34 44 so in matrix.modelview[x][y] x is the column and y is the row of the direct3d matrix */ *(uint32_t *)(&matrix.modelview[maddress >> 2][maddress & 3]) = data; |