#include "Vol_Generic.cgfx" /*************/ technique basic < string layer = "VolTransparent" ; > { pass p1 { VertexProgram = compile vp30 simpleVP(); FragmentProgram = compile fp40 simpleFP(); // Render back faces only, testing against scene depth, not writing into the depthmap CullFaceEnable = true; CullFace = Front ; DepthTestEnable = false; AlphaTestEnable = false; // Additively blend the depths #ifdef PRAETORIAN BlendEnable = true; BlendEquationSeparate = int2( FuncReverseSubtract, FuncAdd ); BlendFuncSeparate = int4( DstAlpha , SrcAlpha , DstAlpha , Zero ) ; #endif StencilTestEnable = true; StencilFunc = int3( Equal , 0 , 1 ); StencilOp = int3( Keep , Keep , Incr ); } } /***************************** eof ***/