Meshes set to not render in the Main Pass still does if both "Render CustomDepth Pass" & "Render in Depth Pass" are enabled, while "Render in Main Pass" is disabled.

Attached is an example project. Look for ExampleCube if in the World Outliner.

Seems related to UE-77463.

Found in 4.24.1 CL#10756747
Reproduced in 4.25 Main CL#10868506

Steps to Reproduce

1. Place a cube in a scene.
2. Set the following settings in Rendering in the Static Mesh component.

  • Disable "Render in Main Pass"
  • Enable "Render in Depth Pass"
  • Enable "Render CustomDepth Pass"
    3. Look at the cube.

Result: The cube is rendered black regardless of material color in the Main Pass.

Expected: The cube is not rendered in the Main Pass.

Have Comments or More Details?

There's no existing public thread on this issue, so head over toAnswerHub just mention UE-86156 in the post.

Login to Vote

Affects Versions4.24.14.25
Target Fix4.25
CreatedDec 25, 2019
UpdatedJan 6, 2020