From 130fa10cd28dbe87fd57d200630add93afdab736 Mon Sep 17 00:00:00 2001 From: "Hyunseok Yang (YG)" Date: Tue, 3 Sep 2024 09:53:37 +0900 Subject: [PATCH 1/3] Add 'new' keyword for message queue variable in SegmentationCamera --- Assets/Scripts/Devices/Modules/RandomNumberGenerator.cs | 2 +- Assets/Scripts/Devices/SegmentationCamera.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/Devices/Modules/RandomNumberGenerator.cs b/Assets/Scripts/Devices/Modules/RandomNumberGenerator.cs index e2ccb670..a4780d0e 100644 --- a/Assets/Scripts/Devices/Modules/RandomNumberGenerator.cs +++ b/Assets/Scripts/Devices/Modules/RandomNumberGenerator.cs @@ -83,7 +83,7 @@ public static double GetNormal(in double mean, in double standardDeviation) { if (standardDeviation <= 0) { - var msg = string.Format("Shape must be positive. Received {0}.", standardDeviation); + var msg = string.Format($"Shape must be positive. Received {standardDeviation}."); // throw new ArgumentOutOfRangeException(msg); Console.Write(msg); } diff --git a/Assets/Scripts/Devices/SegmentationCamera.cs b/Assets/Scripts/Devices/SegmentationCamera.cs index d2ccd7aa..6a16b543 100644 --- a/Assets/Scripts/Devices/SegmentationCamera.cs +++ b/Assets/Scripts/Devices/SegmentationCamera.cs @@ -16,7 +16,7 @@ namespace SensorDevices [RequireComponent(typeof(UnityEngine.Camera))] public class SegmentationCamera : Camera { - private BlockingCollection _messageQueue = new BlockingCollection(); + private new BlockingCollection _messageQueue = new BlockingCollection(); protected override void OnReset() { From eebb2ae6dc4e1784c37d925eafd947e6459ab250 Mon Sep 17 00:00:00 2001 From: "Hyunseok Yang (YG)" Date: Tue, 3 Sep 2024 09:55:47 +0900 Subject: [PATCH 2/3] Modify shader code to resolve warning message in Depth.Shader - output value 'vert' is not completely initialized --- Assets/Resources/Shader/Depth.shader | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Assets/Resources/Shader/Depth.shader b/Assets/Resources/Shader/Depth.shader index 5b3cec71..ac594877 100644 --- a/Assets/Resources/Shader/Depth.shader +++ b/Assets/Resources/Shader/Depth.shader @@ -45,6 +45,8 @@ Shader "Sensor/Depth" v2f_img vert(appdata_img v) { v2f_img o; + UNITY_INITIALIZE_OUTPUT(v2f_img, o); + o.pos = UnityObjectToClipPos(v.vertex); o.uv = MultiplyUV(UNITY_MATRIX_TEXTURE0, v.texcoord); From dd96b4d1d8a079af4eff8f6a462c6bf92e8ba231 Mon Sep 17 00:00:00 2001 From: "Hyunseok Yang (YG)" Date: Tue, 3 Sep 2024 10:04:18 +0900 Subject: [PATCH 3/3] Modify GraphicsSettings - Stripe unused shader variants --- ProjectSettings/GraphicsSettings.asset | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProjectSettings/GraphicsSettings.asset b/ProjectSettings/GraphicsSettings.asset index 935a9c44..28d49de6 100644 --- a/ProjectSettings/GraphicsSettings.asset +++ b/ProjectSettings/GraphicsSettings.asset @@ -46,7 +46,7 @@ GraphicsSettings: m_TierSettings: [] m_LightmapStripping: 0 m_FogStripping: 0 - m_InstancingStripping: 2 + m_InstancingStripping: 0 m_BrgStripping: 0 m_LightmapKeepPlain: 1 m_LightmapKeepDirCombined: 1