I am currently creating a shader which simulates data on the video card (Navier-Stokes). to do this efficiently it needs to be done in cg without any calculations from scripts. the setup requires multiple textures to be written into for storing different types of data (density, velocity, color, etc).
does anyone know how to write to a specific texture/rendertexture? for instance if i calculate the velocity for a pixel in cg how can i write that to the velocity buffer i created?
I have been searching and working for a few days now and cant find what i need but i know it exists… somewhere.
Once i get this navier stokes 2d fluid sim working i will try to post it up for others.
Thanks