-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix tonemap and UV coordinates (#33)
Fixes the washed out AR video colors by calling "inverseTonemapSRGB" on the video texture color. This ensures that the tonemap is correctly set when the video is recognized. Additionally this commit removes the extra call to rotate the final image texture. This is due to how Filament, the 3D library beneath ARCore, handles UV (XY) coordinates by default > When set to true (default value), the Y coordinate of > UV attributes will be flipped when read by this > material's vertex shader. Relates to - google/filament#3067 - SceneView/sceneform-android#437
- Loading branch information
Showing
2 changed files
with
45 additions
and
87 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