Rendering to multiple textures

Started by
1 comment, last by Dolf 15 years, 6 months ago
Hello, Is it possible to write to multiple textures in a pixel shader? Or would I just have to have multiple renders to seperate textures with seperate shaders?
Advertisement
FBO, glDrawBuffers, gl_FragData[].
What's the CG equivalent to gl_FragData[]?


Edit: Found it.
struct output{float4 color : COLOR;float4 color1 : COLOR1;};


Thanks

This topic is closed to new replies.

Advertisement