Multiple Render Target FBO and problem in Cg

Started by
1 comment, last by carew 16 years, 3 months ago
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]
Advertisement
Perhaps this is the same problem you're encountering? You do have a Radeon board...

CG_PROGRAM_LOAD_ERROR with multiple render targets

Are you checking the error values for Cg? They might give you a clue as to what's happening.
My opinion is a recombination and regurgitation of the opinions of those around me. I bring nothing new to the table, and as such, can be safely ignored.[ Useful things - Firefox | GLee | Boost | DevIL ]
Thanks for help:) This is problem from link and now I can solved them :)

This topic is closed to new replies.

Advertisement