Skip to content

Commit

Permalink
distrortion fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroHG committed Sep 19, 2024
1 parent 9fdd254 commit 630924d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions unity/Assets/Scripts/AgentManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1374,6 +1374,20 @@ bool shouldRenderImageSynthesis
"_flow",
"image_thirdParty_flow"
); // XXX fix this in a bit
addImageSynthesisImage(
renderPayload,
imageSynthesis,
this.renderSemanticSegmentation,
"_distortion",
"image_thirdParty_distortion"
);
addImageSynthesisImage(
renderPayload,
imageSynthesis,
this.renderDistortionImage,
"_distortion",
"image_thirdParty_distortion"
);
}
}
}
Expand Down Expand Up @@ -1420,6 +1434,13 @@ bool shouldRenderImageSynthesis
"_flow",
"image_flow"
);
addImageSynthesisImage(
renderPayload,
agent.imageSynthesis,
this.renderDistortionImage,
"_distortion",
"image_distortion"
);
}
metadata.thirdPartyCameras = cameraMetadata;
}
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:
1: UNITY_POST_PROCESSING_STACK_V2
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 630924d

Please sign in to comment.