Description

The expected behavior for the attached project is to highlight meshes / portions of meshes that are obstructed from view. When using MSAA, the entire mesh is highlighted rather than only the obstructed portion.

Workaround:
Using the command r.MSAACount 0 will show the expected behavior.

Steps to Reproduce

(Steps provided by user - sample project is the result)

  1. Download Tom Looman's outline shader. [Link Removed]
  2. Enable Forward Renderer
  3. Set custom depth stencil pass to enabled with stencil
  4. Create a new material with a base color input of 0.1
  5. Create an unbound post process volume using the post process material.
  6. Create some spheres and place them in a similar manner to what's shown below. Enable custom depth on them and set their custom depth stencil value to 254. Apply the material we made previously to them to improve visibilty of the effect.
  7. Observe the effect rendering correctly (ProperEffect.png)
  8. Switch to MSAA with atleast 2 samples.
  9. The effect no longer works correctly. (BrokenEffect.png)

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

10
Login to Vote

Won't Fix
ComponentUE - Graphics Features
Affects Versions4.17.14.184.19
CreatedSep 15, 2017
ResolvedSep 18, 2017
UpdatedApr 27, 2018