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
I modified the Deferred Rendering implementation due to some confusing code: * 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. * I've changed `viewProjMatrix` to not reserve space in advance for the result matrix, similar to other matrices like `rotation` that don't do this.
- Loading branch information