From ac9df979c30e7c5353cd3e696bc476f1ca0c909d Mon Sep 17 00:00:00 2001 From: "Hyunseok Yang (YG)" Date: Thu, 19 Dec 2024 16:30:34 +0900 Subject: [PATCH] disable usemipmap and autogenerateMips in Camera Sensor Device --- Assets/Scripts/Devices/Camera.cs | 4 ++-- Assets/Scripts/Devices/Lidar.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/Scripts/Devices/Camera.cs b/Assets/Scripts/Devices/Camera.cs index 86f9ab54..569469de 100644 --- a/Assets/Scripts/Devices/Camera.cs +++ b/Assets/Scripts/Devices/Camera.cs @@ -211,8 +211,8 @@ private void SetupDefaultCamera() dimension: TextureDimension.Tex2D, msaaSamples: MSAASamples.MSAA2x, enableRandomWrite: false, - useMipMap: true, - autoGenerateMips: true, + useMipMap: false, + autoGenerateMips: false, isShadowMap: false, anisoLevel: 3, mipMapBias: 0, diff --git a/Assets/Scripts/Devices/Lidar.cs b/Assets/Scripts/Devices/Lidar.cs index 8a3d8464..1e234ee2 100644 --- a/Assets/Scripts/Devices/Lidar.cs +++ b/Assets/Scripts/Devices/Lidar.cs @@ -425,7 +425,7 @@ private IEnumerator LaserProcsssing() laserScan.WorldPose.Position.Set(lidarPosition); laserScan.WorldPose.Orientation.Set(lidarRotation); - + var laserSamplesH = (int)horizontal.samples; var laserStartAngleH = (float)horizontal.angle.min; var laserEndAngleH = (float)horizontal.angle.max;