Field-Robotics-Japan / UnitySensors

ROS/ROS2 enabled Sensor models (Assets) on Unity
Apache License 2.0
221 stars 34 forks source link

Added documents for migration to URP/HDRP, and fixed the incorrect depth pixel values in Depth Camera #185

Open Bob-Eric opened 2 hours ago

Bob-Eric commented 2 hours ago
  1. Rewrote the Depth Camera Shader by Shader Graph to better support URP/HDRP. And added documents for migration.
  2. The depth value of the depth camera means the perpendicular distance from the camera plane, not a straight line from the object to the camera lens. So it is corrected.
  3. Changed asmdef to exclude Editor scripts when building.
  4. Load the shader via a material reference and create the corresponding material. This means there is no longer need to add custom shaders to the Always Included Shaders when building.
  5. Updated to Unity 2023.2.