fix it by transposing the model matrix
This commit is contained in:
parent
526b9ba281
commit
455124021f
1 changed files with 2 additions and 2 deletions
|
@ -323,10 +323,10 @@ pokeData frame frameNumber sceneParameters cameraParameters = do
|
|||
V.mapM_
|
||||
(\(index, obj) -> do
|
||||
|
||||
let modelMatrix = GPUObjectData (objectMatrix obj)
|
||||
let modelMatrix = GPUObjectData (transpose $ objectMatrix obj)
|
||||
|
||||
liftIO $ poke
|
||||
(objectPointer `plusPtr` (index * sizeOf (undefined :: GPUObjectData)))
|
||||
(castPtr objectPointer `plusPtr` (index * sizeOf (undefined :: GPUObjectData)))
|
||||
modelMatrix
|
||||
)
|
||||
(V.zip
|
||||
|
|
Loading…
Reference in a new issue