From 34267e45b831e7a3e41997629d6bda2f3f54e0c3 Mon Sep 17 00:00:00 2001 From: Tomas Lorente Date: Mon, 2 Aug 2021 16:23:39 -0300 Subject: [PATCH] updated tests and migration Signed-off-by: Tomas Lorente --- Migration.md | 4 ++++ ogre2/src/media/materials/programs/depth_camera_final_fs.glsl | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Migration.md b/Migration.md index c02192894..4e4f77ef1 100644 --- a/Migration.md +++ b/Migration.md @@ -37,6 +37,10 @@ release will remove the deprecated code. `Node::UserData` now returns no data for keys that don't exist (prior to Rendering 6.x, if `Visual::UserData` was called with a key that doesn't exist, an `int` was returned by default). +1. **depth_camera_fs.glsl** and **depth_camera_final_fs.glsl** + + `Far clipping` changed from using just depth to clip to using length + to focal point to clip. + ## Ignition Rendering 4.0 to 4.1 ## ABI break diff --git a/ogre2/src/media/materials/programs/depth_camera_final_fs.glsl b/ogre2/src/media/materials/programs/depth_camera_final_fs.glsl index ef5eec270..fd5ad7db2 100644 --- a/ogre2/src/media/materials/programs/depth_camera_final_fs.glsl +++ b/ogre2/src/media/materials/programs/depth_camera_final_fs.glsl @@ -50,7 +50,7 @@ void main() // to be outside of min/max range // clamp xyz - if (point.x > far - tolerance) + if (!isinf(point.x) && length(point) > far - tolerance) { if (isinf(max)) {