Jump to content
  • Advertisement
Sign in to follow this  
carew

Multiple Render Target FBO and problem in Cg

This topic is 4002 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi. I have problem with MRT with FBO in Cg. With GLSL shader all it's ok. It's simple pixel shader code:
void main(float4 Color: TEXCOORD0,

out float4 oColor1: COLOR0,
out float4 oColor2: COLOR1)
{
	oColor1 = float4(0 ,0 ,1 ,0);
	oColor2 = float4(0 ,1 ,0 ,0);
}
With this shader all it's black in ARBFP1 profile and 2 tetures are blue in GLSLF profile. With one output color all it's ok. Whats is wrong with Cg? I use ATI Radeon 9550 with Omega Driver 38.421 (the newest) and Cg Toolkit 1.5 (the newest) [Edited by - carew on January 1, 2008 11:06:21 AM]

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!