How to apply a shader to a specific image/texture only, and not to the whole scene?
I found a tutorial for render-to-texture ( Here
), but as far as I understand the ShaderTest.java
in the newest build applies the shader to the whole screen.
Also, how to render it so that stuff behind and in front of the shader-texture won't get affected by the shader in any way?EDIT
Okay, it seems to work just the way I wanted, not the way how I initially thought.
The shader is not applied to the whole scene, but rather only to those images that are drawn between the linesprogram.bind();
If I'm wrong please explain how it actually works.EDIT 2
A shader test: