mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
for normal rendering, if we're translucent, don't use alphatesting. (as a remindernote, the shadowmathook removes MFT_IsTranslucent])
This commit is contained in:
parent
ff4b025c2c
commit
f956c17f3b
|
|
@ -2496,9 +2496,10 @@ void AlphaTestGLSL::processPix( Vector<ShaderComponent*> &componentList,
|
|||
{
|
||||
// If we're below SM3 and don't have a depth output
|
||||
// feature then don't waste an instruction here.
|
||||
if ( GFX->getPixelShaderVersion() < 3.0 &&
|
||||
if (( GFX->getPixelShaderVersion() < 3.0 &&
|
||||
!fd.features[ MFT_EyeSpaceDepthOut ] &&
|
||||
!fd.features[ MFT_DepthOut ] )
|
||||
!fd.features[ MFT_DepthOut ] ) ||
|
||||
fd.features[MFT_IsTranslucent])
|
||||
{
|
||||
output = NULL;
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -2565,9 +2565,10 @@ void AlphaTestHLSL::processPix( Vector<ShaderComponent*> &componentList,
|
|||
{
|
||||
// If we're below SM3 and don't have a depth output
|
||||
// feature then don't waste an instruction here.
|
||||
if ( GFX->getPixelShaderVersion() < 3.0 &&
|
||||
if (( GFX->getPixelShaderVersion() < 3.0 &&
|
||||
!fd.features[ MFT_EyeSpaceDepthOut ] &&
|
||||
!fd.features[ MFT_DepthOut ] )
|
||||
!fd.features[ MFT_DepthOut ] ) ||
|
||||
fd.features[MFT_IsTranslucent])
|
||||
{
|
||||
output = NULL;
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue