# Processing + Eclipse + glsl glass effect

**URL:** <https://discourse.processing.org/t/processing-eclipse-glsl-glass-effect/21021>\
**Category:** Coding Questions\
**Created:** [May 18, 2020, 3:34pm UTC](https://discourse.processing.org/t/processing-eclipse-glsl-glass-effect/21021 "2020-05-18T15:34:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![subsubsub](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@subsubsub](https://discourse.processing.org/u/subsubsub)\
**Post date:** [May 18, 2020, 3:34pm UTC](https://discourse.processing.org/t/processing-eclipse-glsl-glass-effect/21021/1 "2020-05-18T15:34:25Z")

</div>

Hi everyone,  
I’m currently using succesfully java in eclipse, and using glsl shaders.  
I’m trying to replicate a glass effect, and [this post](https://medium.com/@beclamide/advanced-realtime-glass-refraction-simulation-with-webgl-71bdce7ab825) seems interesting.

I just don’t understand if (and how) I have to pass a picture (monkey face) to the shader so has to produce the effect on the background.

I would have thought there would be something like

```auto
uniform sampler2D texture; (representing background image)
uniform sampler2D glass_map; (the monkey face)

```

Instead, there is :

```auto
  uniform sampler2D u_normal;
  uniform sampler2D u_diffuse;
  uniform sampler2D u_reflection;

```

Maybe I misunderstood the meaning of the post.  
By the way, I only draw 2D things.

Any idea is welcome  
thank you  
sebastien
