Skip to main content
gamedev.net
🔒 Locked

Rendering to multiple textures

Started by Dolf 1 reply 800+ views
Original Post
Dolf
Dolf
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?
idinev
idinev
FBO, glDrawBuffers, gl_FragData[].
Dolf
Dolf
What's the CG equivalent to gl_FragData[]?


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


Thanks

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.