Description

Masked materials that sample virtual texture don't function correctly. They render black instead of masked.

This happens when there is no depth pre pass enabled.

Automatically enabling depth pre pass whenever virtual texturing is enabled would fix, but might be unwanted if people aren't using masked materials. So we need to find a better way to control that.

For now if people see this we recommend that they enable depth pre pass with these settings:

"Early Z-pass" to "Opaque and masked meshes"

"Mask material only in early Z-pass" to Enabled.

[Link Removed]

Steps to Reproduce

Download the repro from here- [Link Removed]

With VT's enabled and DBufferDecals disabled, a VT sampled material, when masked, will show up black in the masked area. Regular textures do not and are masked as expected.

[Image Removed]

Have Comments or More Details?

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

2
Login to Vote

Unresolved
ComponentRendering
Affects Versions4.26.24.27
Target Fix5.0
CreatedJun 9, 2021
UpdatedJun 10, 2021