Sign in to follow this  
akira32

COLOR syntax of pixel shader

Recommended Posts

COLOR syntax of pixel shader If I use the "return 0.7f", it means what value of color? float4(0,0,0.7f,1.0f) or float4(0.7f,0.7f,0.7f,0.7f)? Somebody know where the reule and value of color definition(:COLOR) of pixel shader in MSDN? float4 c1=0.5f; the value is equal to the value of float4(0.5f,0.5f,0.5f,0.5f)?
float4 UpdateShadowResultTextureForDeferredShadingPS(Ps_TC_IN IN) : COLOR
{
	return 0.7;
	return float4(0,0,0.7f,1.0f);
}


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