Skip to content

Commit

Permalink
Grass shadows removed for clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
CasualDev242 committed Sep 18, 2014
1 parent da3ff9d commit 96044f5
Showing 1 changed file with 1 addition and 6 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,16 +319,11 @@ 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 ();
}
vOffset += hw_BatchSize * Object.number_vertices;
iOffset += hw_BatchSize * Object.number_indices;
}
}

#endif // USE_DX10
#endif // USE_DX10

0 comments on commit 96044f5

Please sign in to comment.