Skip to content

Commit

Permalink
Disables reneding on distortion map camera until texture data is fetched
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroHG committed Nov 22, 2024
1 parent d7a40c0 commit f7d3e65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions unity/Assets/Scripts/CapturePass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ public override void OnCameraChange(Camera mainCamera) {
camera.clearFlags = CameraClearFlags.SolidColor;
camera.targetTexture = this.GetRenderTexture();
// do not render at update
// this.camera.enabled = false;
this.camera.enabled = false;
// this.camera.SetReplacementShader(this.shader, "");
}

Expand Down Expand Up @@ -717,7 +717,7 @@ public Color32[] GetColors() {
// encode texture into PNG/JPG
Color32[] bytes;

bytes = tex.GetPixels32();
bytes = tex.GetPixels32();



Expand Down
2 changes: 1 addition & 1 deletion unity/ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ PlayerSettings:
webGLThreadsSupport: 0
webGLDecompressionFallback: 0
scriptingDefineSymbols:
1: UNITY_POST_PROCESSING_STACK_V2
1:
4: CROSS_PLATFORM_INPUT;MOBILE_INPUT;UNITY_POST_PROCESSING_STACK_V2
7: CROSS_PLATFORM_INPUT;MOBILE_INPUT;UNITY_POST_PROCESSING_STACK_V2
13: UNITY_POST_PROCESSING_STACK_V2
Expand Down

0 comments on commit f7d3e65

Please sign in to comment.