pass verticalPass
{
AlphaTestEnable = false;
BlendEnable = false;
CullFaceEnable = false;
DepthTestEnable = false;
DepthMask = false;
VertexProgram = compile arbvp1 vpPassThrough();
FragmentProgram = compile arbfp1 fpGaussianPassV();//verticalDir);
}
pass horizontalPass
{
AlphaTestEnable = false;
BlendEnable = false;
CullFaceEnable = false;
DepthTestEnable = true;
DepthMask = true;
VertexProgram = compile arbvp1 vpPassThrough();
FragmentProgram = compile arbfp1 fpGaussianPassH();//horizontalDir);
}
pass drawFinal
{
AlphaTestEnable = false;
BlendEnable = true;
BlendFunc = int2(ConstantAlpha, One);
CullFaceEnable = true;
DepthTestEnable = true;
DepthMask = true;
VertexProgram = compile arbvp1 vpPassThrough();
FragmentProgram = compile arbfp1 fpFinalCompositing();
}
CGFX and Depth Test
Hi, I'm using simple glow example from the NVidia SDK v10. It works great however, I cannot disable glow on the places where depth test is failed. At the OpenGL section, depth test is enabled and it works correctly but glow is drawn. Can I solve this by changing cgfx parameters?
Thanks in advance.
Below is the parameters that are currently set.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement