Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

THREEJS Outer Glow to Plane Primitive

Anyone know how or have an example of a glow on a plane primitive (planemesh? /mesh) in THREEJS? I've googled and found glows for a cube and sphere but these are more like encasing the object/mesh inside another object which has a transparent material, which looks wrong and is not what I need.

The glow effect I am trying to achieve is the same as: - Flash AS3 GlowFilter - Photoshop Layer Effects Outer Glow

I found an example of an outline effect using threejs, this is close but the outline would need to be an gradient with an alpha/opacity gradient.

The glow must only affect the edges of the mesh / primitive (plane).

Thanks

D

like image 929
Darcey Avatar asked Sep 20 '25 16:09

Darcey


1 Answers

I know this is an old question, but I'll reply for potential future readers. You can use OutlinePass from three.js examples.

Sample use of OutlinePass postprocessing

like image 105
karni Avatar answered Sep 22 '25 08:09

karni