Skip to content

Commit

Permalink
Remove unneeded code
Browse files Browse the repository at this point in the history
  • Loading branch information
MiiBond committed Sep 24, 2024
1 parent c597e80 commit 6e51980
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions packages/dev/core/src/Rendering/prePassRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions packages/dev/core/src/Shaders/geometry.fragment.fx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions packages/dev/core/src/ShadersWGSL/geometry.fragment.fx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e51980

Please sign in to comment.