1

based on previous questions: Outline object (normal scale + stencil mask) three.js

I am trying to make a material shader for threejs to render only the contour and not both with the object. Should this be the right reference or is there a more straighforward way to do it?

compmonks
  • 647
  • 10
  • 24
  • 1
    There is already an official example for an outline post-processing effect (https://threejs.org/examples/#webgl_postprocessing_outline). Maybe you can use/adjust it instead of creating a custom one from scratch. – Mugen87 Apr 04 '18 at 19:54

1 Answers1

2

At the moment, the most straightforward solution I could find is from: https://stemkoski.github.io/Three.js/Outline.html with a slightly scaled marching cube using side: THREE.BackSide param in its material.

compmonks
  • 647
  • 10
  • 24