Permalink
Browse files

Remove hardcoded alpha-blend from Cg shaders. Fixes #3707

  • Loading branch information...
1 parent 1e2bccb commit 674e9f3c86d0f141c0731163617224e3f69bf2ee @pchote pchote committed Aug 19, 2013
Showing with 0 additions and 23 deletions.
  1. +0 −5 cg/line.fx
  2. +0 −6 cg/rgba.fx
  3. +0 −6 cg/shp.fx
  4. +0 −6 cg/vxl.fx
View
@@ -44,12 +44,7 @@ technique high_quality {
technique high_quality_cg21 {
pass p0 {
DepthTestEnable = false;
- //CullMode = None;
- //FillMode = Wireframe;
VertexProgram = compile arbvp1 Simple_vp();
FragmentProgram = compile arbfp1 Simple_fp();
-
- BlendEquation = FuncAdd;
- BlendFunc = int2( SrcAlpha, OneMinusSrcAlpha );
}
}
View
@@ -43,9 +43,6 @@ technique high_quality {
CullFaceEnable = false;
VertexProgram = compile latest Simple_vp();
FragmentProgram = compile latest Simple_fp();
-
- BlendEquation = FuncAdd;
- BlendFunc = int2( SrcAlpha, OneMinusSrcAlpha );
}
}
@@ -55,8 +52,5 @@ technique high_quality_cg21 {
CullFaceEnable = false;
VertexProgram = compile arbvp1 Simple_vp();
FragmentProgram = compile arbfp1 Simple_fp();
-
- BlendEquation = FuncAdd;
- BlendFunc = int2( SrcAlpha, OneMinusSrcAlpha );
}
}
View
@@ -59,9 +59,6 @@ technique low_quality {
CullFaceEnable = false;
VertexProgram = compile latest Simple_vp();
FragmentProgram = compile latest Palette_fp();
-
- BlendEquation = FuncAdd;
- BlendFunc = int2( SrcAlpha, OneMinusSrcAlpha );
}
}
@@ -71,8 +68,5 @@ technique low_quality_cg21 {
CullFaceEnable = false;
VertexProgram = compile arbvp1 Simple_vp();
FragmentProgram = compile arbfp1 Palette_fp();
-
- BlendEquation = FuncAdd;
- BlendFunc = int2( SrcAlpha, OneMinusSrcAlpha );
}
}
View
@@ -65,9 +65,6 @@ technique high_quality {
CullFaceEnable = false;
VertexProgram = compile latest Simple_vp();
FragmentProgram = compile latest Simple_fp();
-
- BlendEquation = FuncAdd;
- BlendFunc = int2(SrcAlpha, OneMinusSrcAlpha);
}
}
@@ -77,8 +74,5 @@ technique high_quality_cg21 {
CullFaceEnable = false;
VertexProgram = compile arbvp1 Simple_vp();
FragmentProgram = compile arbfp1 Simple_fp();
-
- BlendEquation = FuncAdd;
- BlendFunc = int2(SrcAlpha, OneMinusSrcAlpha);
}
}

0 comments on commit 674e9f3

Please sign in to comment.