Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix confusing code in deferredRendering (#327)
* The initialization of `viewMatrix` incorrectly uses `mat4.inverse` with `mat4.lookAt`. * The `getCameraViewProjMatrix` function has a local variable of the same name, so it's not used. * `rotation` matrix is applied twice within the `getCameraViewProjMatrix` function. * Change `viewProjMatrix` to not reserve space in advance for the result matrix, similar to other matrices like `rotation` that don't do this. * Remove duplicated `eyePosition` definition.
- Loading branch information