diff --git a/packages/dev/core/src/Rendering/prePassRenderer.ts b/packages/dev/core/src/Rendering/prePassRenderer.ts index a490803adba..b1c1a40c312 100644 --- a/packages/dev/core/src/Rendering/prePassRenderer.ts +++ b/packages/dev/core/src/Rendering/prePassRenderer.ts @@ -466,10 +466,6 @@ export class PrePassRenderer { prePassConstant: Constants.PREPASS_VELOCITY_TEXTURE_TYPE, geometryBufferConstant: GeometryBufferRenderer.VELOCITY_TEXTURE_TYPE, }, - { - prePassConstant: Constants.PREPASS_SCREENSPACE_DEPTH_TEXTURE_TYPE, - geometryBufferConstant: GeometryBufferRenderer.SCREENSPACE_DEPTH_TEXTURE_TYPE, - }, ]; // replace textures in the geometryBuffer RT diff --git a/packages/dev/core/src/Shaders/geometry.fragment.fx b/packages/dev/core/src/Shaders/geometry.fragment.fx index 65d4f03c573..b59ab478ed0 100644 --- a/packages/dev/core/src/Shaders/geometry.fragment.fx +++ b/packages/dev/core/src/Shaders/geometry.fragment.fx @@ -97,10 +97,6 @@ void main() { gl_FragData[DEPTH_INDEX] = vec4(vViewPos.z / vViewPos.w, 0.0, 0.0, 1.0); #endif - #ifdef PREPASS_SCREENSPACE_DEPTH - gl_FragData[SCREENSPACE_DEPTH_INDEX] = vec4(gl_FragCoord.z, 0.0, 0.0, 1.0); - #endif - #if defined(PREPASS_NORMAL) || defined(PREPASS_WORLD_NORMAL) gl_FragData[NORMAL_INDEX] = vec4(normalOutput, 1.0); #endif diff --git a/packages/dev/core/src/ShadersWGSL/geometry.fragment.fx b/packages/dev/core/src/ShadersWGSL/geometry.fragment.fx index e1a726d6d90..da08698d768 100644 --- a/packages/dev/core/src/ShadersWGSL/geometry.fragment.fx +++ b/packages/dev/core/src/ShadersWGSL/geometry.fragment.fx @@ -96,10 +96,6 @@ fn main(input: FragmentInputs) -> FragmentOutputs { fragData[DEPTH_INDEX] = vec4f(input.vViewPos.z / input.vViewPos.w, 0.0, 0.0, 1.0); #endif - #ifdef PREPASS_SCREENSPACE_DEPTH - fragData[SCREENSPACE_DEPTH_INDEX] = vec4(fragmentInputs.position.z, 0.0, 0.0, 1.0); - #endif - #if defined(PREPASS_NORMAL) || defined(PREPASS_WORLD_NORMAL) fragData[NORMAL_INDEX] = vec4f(normalOutput, 1.0); #endif