From 546e7a65c4a35ad90f7946bf26b72adb509881ba Mon Sep 17 00:00:00 2001 From: Jeshurun Hembd Date: Thu, 19 Dec 2024 22:36:13 -0500 Subject: [PATCH] Fix precision issue in DepthPlaneVS --- CHANGES.md | 1 + packages/engine/Source/Shaders/DepthPlaneVS.glsl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index f430332fe688..a265c33000f6 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -5,6 +5,7 @@ ##### Fixes :wrench: - Fixed JulianDate to always generate valid ISO strings for fractional milliseconds [#12345](https://github.com/CesiumGS/cesium/pull/12345) +- Fixed intermittent z-fighting issue. [#12337](https://github.com/CesiumGS/cesium/issues/12337) ### 1.124 - 2024-12-02 diff --git a/packages/engine/Source/Shaders/DepthPlaneVS.glsl b/packages/engine/Source/Shaders/DepthPlaneVS.glsl index b5204ec2f53d..4141585366a6 100644 --- a/packages/engine/Source/Shaders/DepthPlaneVS.glsl +++ b/packages/engine/Source/Shaders/DepthPlaneVS.glsl @@ -5,7 +5,7 @@ out vec4 positionEC; void main() { positionEC = czm_modelView * position; - gl_Position = czm_modelViewProjection * position; + gl_Position = czm_projection * positionEC; czm_vertexLogDepth(); }