Sign in to follow this  

Multiple Render Target FBO and problem in Cg

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this