Game Development Community

Custom Sprite Shaders

by Sam Yatchmenoff · in Torque X 2D · 10/28/2007 (8:47 pm) · 3 replies

Is it possible to apply custom shaders to Sprites and Scrollers with non-Pro Torque X?

About the author

Recent Threads


#1
10/29/2007 (8:52 pm)
I'm also very interested in finding out more about materials and fullscreen shader effects. I was able to master them in the TGEA world, but haven't even started looking the Torque X equivalents. Since this is an area I'm also really interested in, I'll start some digging and post whatever I find.

John K.

Update: I'm now putting together a long summary of my findings. I'll post a new thread in a few minutes.
#2
10/30/2007 (6:50 am)
I've never used shaders with TX so this could be a stupid question. In regards to full screen effects, could you not create a material which is almost completley transparent and mount it to the camera. Then apply the shader to material and although you wouldn't see it affect the material itself, hopefully everything behind is affected. Or would that not work?
#3
10/30/2007 (9:48 am)
Unfortunately, I don't think that would work. Shaders were designed for shading, and that means that a light component is an important parameter to process. Also, I believe the vertex and pixel information passed into the shader would just be for the camera-mounted material and not the whole scene. It might be worth trying though to see what happens.

John K.