-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change gives a small speed improvement by: - Avoid setting uniforms every time we change the shader. Uniforms are maintained per shader, so there is no need to change them all the time. - Managing recalculation of the projection and modelview matrices separately. No need to recalculate the projection matrix when the viewer's position changed.
- Loading branch information
Showing
1 changed file
with
50 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters