Game Development Community

Send a texture to a PostFx from engine

by Lukas Joergensen · in Torque 3D Professional · 01/27/2014 (2:12 am) · 3 replies

Edit: repurposed the thread
Hey guys.
I have a PostFx that is rendered after diffuse, and I'd like to send a texture (or rather a list of positions) to it.
Any ideas on how to do that?

#1
01/27/2014 (8:59 am)
Hi. Look at the PostEffect( SSAOPostFx ), it takes few textures to the PostEffect.

texture[0] = "#prepass";
texture[1] = "noise.png";
texture[2] = "#ssao_pow_table";
#2
01/27/2014 (9:08 am)
Yeah, thats "shader to shader" passing tho.

Anw I realized my approach was flawed so now I need to figure out a way to run a shader for each light in the scene after diffuse has been rendered.

Any clues?
#3
01/27/2014 (10:40 am)
Again revised my issue, now I just need to be able to call a PostFx.

This is what I need:
I have a light, and I want to call a shader that can calculate the position of the light and the position of the eye.
I just don't know how to send it.