Skip to content

Commit

Permalink
Revert "Grass shadows restored"
Browse files Browse the repository at this point in the history
This reverts commit a5f29f1.
  • Loading branch information
CasualDev242 committed Sep 19, 2014
1 parent a5f29f1 commit f3f3cf1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 34 deletions.
7 changes: 1 addition & 6 deletions Layers/xrRender/DetailManager_VS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,7 @@ void CDetailManager::hw_Render_dump (ref_constant x_array, u32 var_id, u32 lod_
RCache.stat.r.s_details.add (dwCNT_verts);
}
// Clean up
// KD: we must not clear vis on r2 since we want details shadows
#if RENDER!=R_R1
if ((ps_r2_ls_flags.test(R2FLAG_SUN_DETAILS) && (RImplementation.PHASE_SMAP == RImplementation.phase)) // phase_smap
|| (!ps_r2_ls_flags.test(R2FLAG_SUN_DETAILS) && (RImplementation.PHASE_NORMAL == RImplementation.phase))) // phase_normal
#endif
vis.clear_not_free ();
vis.clear_not_free ();
}
vOffset += hw_BatchSize * Object.number_vertices;
iOffset += hw_BatchSize * Object.number_indices;
Expand Down
10 changes: 2 additions & 8 deletions Layers/xrRenderPC_R2/blender_deffer_aref.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,18 @@ void CBlender_deffer_aref::Compile(CBlender_Compile& C)
case SE_R2_NORMAL_HQ:
case SE_R2_NORMAL_LQ:
if (lmapped) {
C.r_Pass ("lmapE","lmapE",TRUE,TRUE,TRUE,TRUE,D3DBLEND_SRCALPHA, D3DBLEND_INVSRCALPHA, TRUE, oAREF.value);
C.r_Pass ("lmapE","lmapE",TRUE,TRUE,FALSE,TRUE,D3DBLEND_SRCALPHA, D3DBLEND_INVSRCALPHA, TRUE, oAREF.value);
C.r_Sampler ("s_base", C.L_textures[0] );
C.r_Sampler ("s_lmap", C.L_textures[1] );
C.r_Sampler_clf ("s_hemi", *C.L_textures[2]);
C.r_Sampler ("s_env", r2_T_envs0, false,D3DTADDRESS_CLAMP);
C.r_End ();
} else {
C.r_Pass ("vert", "vert", TRUE,TRUE,TRUE,TRUE,D3DBLEND_SRCALPHA, D3DBLEND_INVSRCALPHA, TRUE, oAREF.value);
C.r_Pass ("vert", "vert", TRUE,TRUE,FALSE,TRUE,D3DBLEND_SRCALPHA, D3DBLEND_INVSRCALPHA, TRUE, oAREF.value);
C.r_Sampler ("s_base", C.L_textures[0] );
C.r_End ();
}
break;
case SE_R2_SHADOW: // smap
if (RImplementation.o.HW_smap) C.r_Pass ("shadow_direct_base_aref","shadow_direct_base_aref",FALSE,TRUE,TRUE,FALSE,D3DBLEND_ZERO,D3DBLEND_ONE,TRUE,220);
else C.r_Pass ("shadow_direct_base_aref","shadow_direct_base_aref",FALSE);
C.r_Sampler ("s_base",C.L_textures[0]);
C.r_End ();
break;
default:
break;
}
Expand Down
12 changes: 2 additions & 10 deletions Layers/xrRenderPC_R3/blender_deffer_aref.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void CBlender_deffer_aref::Compile(CBlender_Compile& C)
case SE_R2_NORMAL_LQ:
if (lmapped)
{
C.r_Pass ("lmapE","lmapE",TRUE,TRUE,TRUE,TRUE,D3DBLEND_SRCALPHA, D3DBLEND_INVSRCALPHA, TRUE, oAREF.value);
C.r_Pass ("lmapE","lmapE",TRUE,TRUE,FALSE,TRUE,D3DBLEND_SRCALPHA, D3DBLEND_INVSRCALPHA, TRUE, oAREF.value);
//C.r_Sampler ("s_base", C.L_textures[0] );
//C.r_Sampler ("s_lmap", C.L_textures[1] );
//C.r_Sampler_clf ("s_hemi", *C.L_textures[2]);
Expand All @@ -61,21 +61,13 @@ void CBlender_deffer_aref::Compile(CBlender_Compile& C)
}
else
{
C.r_Pass ("vert", "vert", TRUE,TRUE,TRUE,TRUE,D3DBLEND_SRCALPHA, D3DBLEND_INVSRCALPHA, TRUE, oAREF.value);
C.r_Pass ("vert", "vert", TRUE,TRUE,FALSE,TRUE,D3DBLEND_SRCALPHA, D3DBLEND_INVSRCALPHA, TRUE, oAREF.value);
//C.r_Sampler ("s_base", C.L_textures[0] );
C.r_dx10Texture ("s_base", C.L_textures[0]);
C.r_dx10Sampler ("smp_base");
C.r_End ();
}
break;
case SE_R2_SHADOW: // smap
C.r_Pass ("shadow_direct_base_aref","shadow_direct_base_aref", FALSE,TRUE,TRUE,FALSE);
C.r_dx10Texture ("s_base",C.L_textures[0]);
C.r_dx10Sampler ("smp_base");
C.r_dx10Sampler ("smp_linear");
C.r_ColorWriteEnable(false, false, false, false);
C.r_End ();
break;
default:
break;
}
Expand Down
12 changes: 2 additions & 10 deletions Layers/xrRenderPC_R4/blender_deffer_aref.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void CBlender_deffer_aref::Compile(CBlender_Compile& C)
case SE_R2_NORMAL_LQ:
if (lmapped)
{
C.r_Pass ("lmapE","lmapE",TRUE,TRUE,TRUE,TRUE,D3DBLEND_SRCALPHA, D3DBLEND_INVSRCALPHA, TRUE, oAREF.value);
C.r_Pass ("lmapE","lmapE",TRUE,TRUE,FALSE,TRUE,D3DBLEND_SRCALPHA, D3DBLEND_INVSRCALPHA, TRUE, oAREF.value);
//C.r_Sampler ("s_base", C.L_textures[0] );
//C.r_Sampler ("s_lmap", C.L_textures[1] );
//C.r_Sampler_clf ("s_hemi", *C.L_textures[2]);
Expand All @@ -61,21 +61,13 @@ void CBlender_deffer_aref::Compile(CBlender_Compile& C)
}
else
{
C.r_Pass ("vert", "vert", TRUE,TRUE,TRUE,TRUE,D3DBLEND_SRCALPHA, D3DBLEND_INVSRCALPHA, TRUE, oAREF.value);
C.r_Pass ("vert", "vert", TRUE,TRUE,FALSE,TRUE,D3DBLEND_SRCALPHA, D3DBLEND_INVSRCALPHA, TRUE, oAREF.value);
//C.r_Sampler ("s_base", C.L_textures[0] );
C.r_dx10Texture ("s_base", C.L_textures[0]);
C.r_dx10Sampler ("smp_base");
C.r_End ();
}
break;
case SE_R2_SHADOW: // smap
C.r_Pass ("shadow_direct_base_aref","shadow_direct_base_aref", FALSE,TRUE,TRUE,FALSE);
C.r_dx10Texture ("s_base",C.L_textures[0]);
C.r_dx10Sampler ("smp_base");
C.r_dx10Sampler ("smp_linear");
C.r_ColorWriteEnable(false, false, false, false);
C.r_End ();
break;
default:
break;
}
Expand Down

0 comments on commit f3f3cf1

Please sign in to comment.