Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Since the Shader interface doesn't expose very much information that can be examined in tests, the shader system now attaches an internal dummy Material to any shader which doesn't have a Material of its own. Currently this internal Material only exposes the name used to construct the shader, and it is this which is tested to confirm that the light wireframe shader matches the editor_color value. In order to make it easier to construct this new InternalMaterial class, all public virtuals on the Material interface are now non-pure, with empty default implementations. This in turn required a couple of method signatures to be changed to return by value rather than by const reference.
- Loading branch information
Matthew Mott
committed
Feb 13, 2021
1 parent
b8dbc7d
commit e52ceae
Showing
12 changed files
with
184 additions
and
207 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
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
Oops, something went wrong.