Can shaders be applied to textures?

Started by lawless_c, June 16, 2014, 11:24:28 PM

Previous topic - Next topic

lawless_c

I wanted to know this as id like to know if i't possible to apply shaders to textures such as for a UI, or something that will get placed on the framebuffer. The only way i can currently think of doing this might be to apply it to a flat mesh and have against the camera.


EgonOlsen

You can't apply a shader to a texture, only to real geometry. But you can use an Overlay instead of the blit methods in FrameBuffer. You can get the Object3D that forms the Overlay and add a shader to that one.
I hope this helps, because i can't access your links ATM due to my slow mobile internet connection.

lawless_c

I'll give that shot , if I find something that works I'll report back what I got working here.