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
1. Place a cube in a scene.
2. Set the following settings in Rendering in the Static Mesh component.
Result: The cube is rendered black regardless of material color in the Main Pass.
Expected: The cube is not rendered in the Main Pass.
There's no existing public thread on this issue, so head over toAnswerHub just mention UE-86156 in the post.