#ifdef _PRAETORIAN_ #include "Deferred/BasicDeferred_AlphaTest.cgfx" /*************/ technique basic < string layer = "3DScene" ; > { pass p0 { VertexProgram = compile vp30 simpleVP(); FragmentProgram = compile fp40 simpleFP(); DepthTestEnable = true; DepthMask = true; BlendEnable = false; AlphaTestEnable = false; AlphaFunc = float2( Greater , 0.5 ); } pass shadowPass < string layer = "Shadow" ; string excludeData = "NoShadowCast" ; > { VertexProgram = compile vp20 BasicDepthVP(); FragmentProgram = compile fp20 BasicDepthFP(); DepthTestEnable = true; DepthMask = true; ColorMask = bool4( false , false , false , false ); BlendEnable = false; AlphaTest = true; CullFaceEnable = false; } } technique doubleSided < string layer = "3DScene" ; > { pass p0 { VertexProgram = compile vp30 simpleVP(); FragmentProgram = compile fp40 simpleFP(); DepthTestEnable = true; DepthMask = true; BlendEnable = false; AlphaTestEnable = true; AlphaFunc = float2( Greater , 0.5 ); CullFaceEnable = false; } pass shadowPass < string layer = "Shadow" ; string excludeData = "NoShadowCast" ; > { VertexProgram = compile vp20 BasicDepthVP(); FragmentProgram = compile fp20 BasicDepthFP(); DepthTestEnable = true; DepthMask = true; ColorMask = bool4( false , false , false , false ); BlendEnable = false; AlphaTest = true; CullFaceEnable = false; } } #else #include "Forward/Basic_AlphaTest.cgfx" /*************/ technique basic < string layer = "3DScene" ; > { pass p0 { VertexProgram = compile vp30 simpleVP(); FragmentProgram = compile fp40 simpleFP(); DepthTestEnable = true; DepthMask = true; BlendEnable = false; AlphaTestEnable = true; AlphaFunc = float2( Greater , 0.5 ); } pass shadowPass < string layer = "Shadow" ; string excludeData = "NoShadowCast" ; > { VertexProgram = compile vp20 BasicDepthVP(); FragmentProgram = compile fp20 BasicDepthFP(); DepthTestEnable = true; DepthMask = true; ColorMask = bool4( false , false , false , false ); BlendEnable = false; AlphaTest = true; CullFaceEnable = false; } } technique doubleSided < string layer = "3DScene" ; > { pass p0 { VertexProgram = compile vp30 simpleVP(); FragmentProgram = compile fp40 simpleFP(); DepthTestEnable = true; DepthMask = true; BlendEnable = false; AlphaTestEnable = true; AlphaFunc = float2( Greater , 0.5 ); CullFaceEnable = false; } pass shadowPass < string layer = "Shadow" ; string excludeData = "NoShadowCast" ; > { VertexProgram = compile vp20 BasicDepthVP(); FragmentProgram = compile fp20 BasicDepthFP(); DepthTestEnable = true; DepthMask = true; ColorMask = bool4( false , false , false , false ); BlendEnable = false; AlphaTest = true; CullFaceEnable = false; } } #endif//_PRAETORIAN_