Draw An Outline Around a Model Entity

Hi,

Is there a resource or sample code about how to draw an outline around a mesh in RealityKit?

Typically, this is useful for visualizing a selection, like in Reality Composer Pro.

How to achieve such effect? A shader material? A post-process effect in ARView or RealityRenderer?

Methods such as duplicating the entity mesh, scaling it, and using material.faceCulling = .front did not look good in my experiments.

Thank you.

Draw An Outline Around a Model Entity
 
 
Q