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?
#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
John K.
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.
Associate John Kanalakis
EnvyGames
John K.
Update: I'm now putting together a long summary of my findings. I'll post a new thread in a few minutes.