-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
load_with_settings
instead of manually overriding srgbness in e…
…xamples (#13399) # Objective `parallax_mapping` and `deferred_rendering` both use a roundabout way of manually overriding the srgbness of their normal map textures. This can now be done with `load_with_settings` in one line of code. ## Solution - Delete the override systems and use `load_with_settings` instead - Make `deferred_rendering`'s instruction text style consistent with other examples while I'm in there. (see #8478) ## Testing Tested by running with `load` instead of `load_settings` and confirming that lighting looks bad when `is_srgb` is not configured, and good when it is. ## Discussion It would arguably make more sense to configure this in a `.meta` file, but I used `load_with_settings` because that's how it was done in the `clearcoat` example and it does seem nice for documentation purposes to call this out explicitly in code.
- Loading branch information
Showing
2 changed files
with
20 additions
and
77 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