Author Topic: Can shaders be applied to textures?  (Read 2064 times)

Offline lawless_c

  • int
  • **
  • Posts: 96
    • View Profile
Can shaders be applied to textures?
« on: June 16, 2014, 11:24:28 pm »
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.


Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Can shaders be applied to textures?
« Reply #2 on: June 18, 2014, 07:22:34 pm »
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.

Offline lawless_c

  • int
  • **
  • Posts: 96
    • View Profile
Re: Can shaders be applied to textures?
« Reply #3 on: June 19, 2014, 02:30:58 am »
I'll give that shot , if I find something that works I'll report back what I got working here.