Reputation: 3
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
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