Skip to content

Commit fe6e119

Browse files
author
Pavel Kovalenko
committed
2 parents 6eadb57 + 379a56f commit fe6e119

File tree

4 files changed

+10
-28
lines changed

4 files changed

+10
-28
lines changed

src/engine/Layers/xrRender/DetailManager_VS.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,11 @@ void CDetailManager::hw_Render_dump (ref_constant x_array, u32 var_id, u32 lod_
319319
RCache.stat.r.s_details.add (dwCNT_verts);
320320
}
321321
// Clean up
322+
<<<<<<< HEAD
323+
vis.clear_not_free ();
324+
=======
322325
vis.clear_not_free ();
326+
>>>>>>> origin/master
323327
}
324328
vOffset += hw_BatchSize * Object.number_vertices;
325329
iOffset += hw_BatchSize * Object.number_indices;

src/engine/Layers/xrRenderPC_R2/blender_deffer_aref.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,24 +41,18 @@ void CBlender_deffer_aref::Compile(CBlender_Compile& C)
4141
case SE_R2_NORMAL_HQ:
4242
case SE_R2_NORMAL_LQ:
4343
if (lmapped) {
44-
C.r_Pass ("lmapE","lmapE",TRUE,TRUE,TRUE,TRUE,D3DBLEND_SRCALPHA, D3DBLEND_INVSRCALPHA, TRUE, oAREF.value);
44+
C.r_Pass ("lmapE","lmapE",TRUE,TRUE,FALSE,TRUE,D3DBLEND_SRCALPHA, D3DBLEND_INVSRCALPHA, TRUE, oAREF.value);
4545
C.r_Sampler ("s_base", C.L_textures[0] );
4646
C.r_Sampler ("s_lmap", C.L_textures[1] );
4747
C.r_Sampler_clf ("s_hemi", *C.L_textures[2]);
4848
C.r_Sampler ("s_env", r2_T_envs0, false,D3DTADDRESS_CLAMP);
4949
C.r_End ();
5050
} else {
51-
C.r_Pass ("vert", "vert", TRUE,TRUE,TRUE,TRUE,D3DBLEND_SRCALPHA, D3DBLEND_INVSRCALPHA, TRUE, oAREF.value);
51+
C.r_Pass ("vert", "vert", TRUE,TRUE,FALSE,TRUE,D3DBLEND_SRCALPHA, D3DBLEND_INVSRCALPHA, TRUE, oAREF.value);
5252
C.r_Sampler ("s_base", C.L_textures[0] );
5353
C.r_End ();
5454
}
5555
break;
56-
case SE_R2_SHADOW: // smap
57-
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);
58-
else C.r_Pass ("shadow_direct_base_aref","shadow_direct_base_aref",FALSE);
59-
C.r_Sampler ("s_base",C.L_textures[0]);
60-
C.r_End ();
61-
break;
6256
default:
6357
break;
6458
}

src/engine/Layers/xrRenderPC_R3/blender_deffer_aref.cpp

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void CBlender_deffer_aref::Compile(CBlender_Compile& C)
4343
case SE_R2_NORMAL_LQ:
4444
if (lmapped)
4545
{
46-
C.r_Pass ("lmapE","lmapE",TRUE,TRUE,TRUE,TRUE,D3DBLEND_SRCALPHA, D3DBLEND_INVSRCALPHA, TRUE, oAREF.value);
46+
C.r_Pass ("lmapE","lmapE",TRUE,TRUE,FALSE,TRUE,D3DBLEND_SRCALPHA, D3DBLEND_INVSRCALPHA, TRUE, oAREF.value);
4747
//C.r_Sampler ("s_base", C.L_textures[0] );
4848
//C.r_Sampler ("s_lmap", C.L_textures[1] );
4949
//C.r_Sampler_clf ("s_hemi", *C.L_textures[2]);
@@ -61,21 +61,13 @@ void CBlender_deffer_aref::Compile(CBlender_Compile& C)
6161
}
6262
else
6363
{
64-
C.r_Pass ("vert", "vert", TRUE,TRUE,TRUE,TRUE,D3DBLEND_SRCALPHA, D3DBLEND_INVSRCALPHA, TRUE, oAREF.value);
64+
C.r_Pass ("vert", "vert", TRUE,TRUE,FALSE,TRUE,D3DBLEND_SRCALPHA, D3DBLEND_INVSRCALPHA, TRUE, oAREF.value);
6565
//C.r_Sampler ("s_base", C.L_textures[0] );
6666
C.r_dx10Texture ("s_base", C.L_textures[0]);
6767
C.r_dx10Sampler ("smp_base");
6868
C.r_End ();
6969
}
7070
break;
71-
case SE_R2_SHADOW: // smap
72-
C.r_Pass ("shadow_direct_base_aref","shadow_direct_base_aref", FALSE,TRUE,TRUE,FALSE);
73-
C.r_dx10Texture ("s_base",C.L_textures[0]);
74-
C.r_dx10Sampler ("smp_base");
75-
C.r_dx10Sampler ("smp_linear");
76-
C.r_ColorWriteEnable(false, false, false, false);
77-
C.r_End ();
78-
break;
7971
default:
8072
break;
8173
}

src/engine/Layers/xrRenderPC_R4/blender_deffer_aref.cpp

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void CBlender_deffer_aref::Compile(CBlender_Compile& C)
4343
case SE_R2_NORMAL_LQ:
4444
if (lmapped)
4545
{
46-
C.r_Pass ("lmapE","lmapE",TRUE,TRUE,TRUE,TRUE,D3DBLEND_SRCALPHA, D3DBLEND_INVSRCALPHA, TRUE, oAREF.value);
46+
C.r_Pass ("lmapE","lmapE",TRUE,TRUE,FALSE,TRUE,D3DBLEND_SRCALPHA, D3DBLEND_INVSRCALPHA, TRUE, oAREF.value);
4747
//C.r_Sampler ("s_base", C.L_textures[0] );
4848
//C.r_Sampler ("s_lmap", C.L_textures[1] );
4949
//C.r_Sampler_clf ("s_hemi", *C.L_textures[2]);
@@ -61,21 +61,13 @@ void CBlender_deffer_aref::Compile(CBlender_Compile& C)
6161
}
6262
else
6363
{
64-
C.r_Pass ("vert", "vert", TRUE,TRUE,TRUE,TRUE,D3DBLEND_SRCALPHA, D3DBLEND_INVSRCALPHA, TRUE, oAREF.value);
64+
C.r_Pass ("vert", "vert", TRUE,TRUE,FALSE,TRUE,D3DBLEND_SRCALPHA, D3DBLEND_INVSRCALPHA, TRUE, oAREF.value);
6565
//C.r_Sampler ("s_base", C.L_textures[0] );
6666
C.r_dx10Texture ("s_base", C.L_textures[0]);
6767
C.r_dx10Sampler ("smp_base");
6868
C.r_End ();
6969
}
7070
break;
71-
case SE_R2_SHADOW: // smap
72-
C.r_Pass ("shadow_direct_base_aref","shadow_direct_base_aref", FALSE,TRUE,TRUE,FALSE);
73-
C.r_dx10Texture ("s_base",C.L_textures[0]);
74-
C.r_dx10Sampler ("smp_base");
75-
C.r_dx10Sampler ("smp_linear");
76-
C.r_ColorWriteEnable(false, false, false, false);
77-
C.r_End ();
78-
break;
7971
default:
8072
break;
8173
}

0 commit comments

Comments
 (0)