Skip to content

Commit

Permalink
Fix RenderTextureOutput depth format
Browse files Browse the repository at this point in the history
- Since it defaults to 24 bit, Quest didn't like the texture
  • Loading branch information
MerlinVR committed Oct 2, 2023
1 parent 41b4aa2 commit 77f2a39
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Assets/USharpVideo/Scripts/Utility/RenderTextureOutput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ void CreateCRT()
newCRT.initializationMode = CustomRenderTextureUpdateMode.OnLoad;
newCRT.initializationColor = Color.black;
newCRT.initializationSource = CustomRenderTextureInitializationSource.TextureAndColor;
newCRT.depth = 0;

newCRT.updateMode = CustomRenderTextureUpdateMode.Realtime;

Expand Down

0 comments on commit 77f2a39

Please sign in to comment.