Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed|Model Renderer: Eye position for specular lighting
Previously only the eye direction was passed to the shader, but for accurate results, the eye direction has to be calculated separately for each vertex. Now only the eye position in local space is given to the shader. Also fixed specular lighting from light sources on the wrong side of surfaces.
- Loading branch information
Showing
3 changed files
with
29 additions
and
21 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
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
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