z.pz
z.pz

Reputation: 3

About the translucent effect of three.js

I have a need. I need to make a window. The glass on the window is transparent. I have found some examples: https://threejs.org/examples/#webgl_materials_shaders_fresnel https://threejs.org/examples/#webgl_materials_cubemap_refraction

The background of these examples is static pictures. My background is dynamic. How can I do it?

Upvotes: 0

Views: 805

Answers (1)

Mugen87
Mugen87

Reputation: 31026

Maybe you can use THREE.Refractor like shown in this example. It allows you to create a refractive see-through surface. You might have to adjust the respective shader program in order to achieve your intended visual result (the default shader of THREE.Refractor does not perform any distortions).

Upvotes: 1

Related Questions