Home > database >  Create border or outline on ModelEntity?
Create border or outline on ModelEntity?

Time:12-24

How can I create a border/outline on a ModelEntity in RealityKit?

Something like this blue border in Reality Composer:

enter image description here

CodePudding user response:

You can achieve this effect in two ways: either using Metal features, or natively in RealityKit (but sometimes with some artifacts). In RealityKit, such an outline could be rendered with enter image description here

P. S.

In your case, the name of a rook is:

.findEntity(named: "chess_rook_white_base_iconic_lod0")
  • Related