-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trade: improve compat of deprecated PhongMaterialData::textureMatrix().
The new materials now commonly import separate per-texture matrices instead of a single one even if they're all the same because that makes the plugin implementation *much* simpler. However, existing code that assumes there's just one matrix would get broken because textureMatrix() would not return something else. By changing that to return a common matrix if present and falling back to the global one we can preserve the original behavior.
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 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