C
C
copal2016-07-17 19:52:37
3D
copal, 2016-07-17 19:52:37

Where are the filters in Three.js?

For a change, I decided to try Threejs and everything seems to be clear, except for the moment with filters.
I can't find how to make the glow. Google says that for this I have to write a thousand lines and a shader with my hands. I don’t want to believe in it, because this is the Middle Ages, that’s why I ask this question - how to make a glow and how are things with filters in general?
For example, I looked at babelon.js, there is also no hint of filters. I have never worked seriously with 3d and maybe I don’t know something?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
FoxInSox, 2016-07-17
@copal

You need to write a pixel shader (fragment shader). Although a lot of people have probably already written it, google it.

S
svaa1982, 2018-11-10
@svaa1982

Filters in the world of 3D graphics are called post-processing. Three.js has a lot of ready-made examples, including with a glow, for example this option:
https://threejs.org/examples/?q=bloom#webgl_postpr...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question