Skip to content

Commit 044d383

Browse files
CasualDev242Xottab-DUTY
authored andcommitted
+Actor shadow added
+SE_NEAR changed from 9 to 20 +zoom_dof enabled +reload_dof and reload_empty_dof added
1 parent cee6a56 commit 044d383

File tree

21 files changed

+116
-28
lines changed

21 files changed

+116
-28
lines changed

src/Layers/xrRender/r__dsgraph_render.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,11 @@ void D3DXRenderBase::r_dsgraph_render_subspace(IRender_Sector* _sector, CFrustum
783783
}
784784
}
785785

786+
#if RENDER != R_R1
787+
if (g_pGameLevel && (phase == RImplementation.PHASE_SMAP) && ps_actor_shadow_flags.test(RFLAG_ACTOR_SHADOW))
788+
g_hud->Render_Actor_Shadow(); // Actor Shadow
789+
#endif
790+
786791
// Restore
787792
ViewBase = ViewSave;
788793
View = nullptr;

src/Layers/xrRender/xrRender_console.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ xr_token ext_quality_token[] = {{"qt_off", 0}, {"qt_low", 1}, {"qt_medium", 2},
189189
{"qt_high", 3}, {"qt_extreme", 4}, {nullptr, 0}};
190190
//-AVO
191191

192+
Flags32 ps_actor_shadow_flags = { 0 };
193+
192194
//- Mad Max
193195
float ps_r2_gloss_factor = 4.0f;
194196
//- Mad Max
@@ -750,6 +752,8 @@ void xrRender_initconsole()
750752
CMD4(CCC_Float, "r2_zfill_depth", &ps_r2_zfill, .001f, .5f);
751753
CMD3(CCC_Mask, "r2_allow_r1_lights", &ps_r2_ls_flags, R2FLAG_R1LIGHTS);
752754

755+
CMD3(CCC_Mask, "r__actor_shadow", &ps_actor_shadow_flags, RFLAG_ACTOR_SHADOW); //Swartz
756+
753757
//- Mad Max
754758
CMD4(CCC_Float, "r2_gloss_factor", &ps_r2_gloss_factor, .0f, 10.f);
755759
//- Mad Max

src/Layers/xrRender/xrRender_console.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,13 @@ enum
195195
R2FLAGEXT_SUN_OLD = (1 << 9),
196196
};
197197

198+
extern ECORE_API Flags32 ps_actor_shadow_flags;
199+
200+
enum
201+
{
202+
RFLAG_ACTOR_SHADOW = (1 << 0),
203+
};
204+
198205
extern void xrRender_initconsole();
199206
extern BOOL xrRender_test_hw();
200207
extern void xrRender_apply_tf();

src/Layers/xrRenderPC_R1/FStaticRender.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ class CRender : public D3DXRenderBase
193193
virtual void rmFar() override;
194194
virtual void rmNormal() override;
195195

196+
u32 active_phase() override { return phase; }
197+
196198
// Constructor/destructor/loader
197199
CRender();
198200
virtual ~CRender();

src/Layers/xrRenderPC_R2/r2.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,8 @@ class CRender : public D3DXRenderBase
318318
virtual void rmFar();
319319
virtual void rmNormal();
320320

321+
u32 active_phase() override { return phase; }
322+
321323
// Constructor/destructor/loader
322324
CRender();
323325
virtual ~CRender();

src/Layers/xrRenderPC_R2/r2_R_sun.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1479,7 +1479,7 @@ void CRender::init_cacades()
14791479
float fBias = -0.0000025f;
14801480
// float size = MAP_SIZE_START;
14811481
m_sun_cascades[0].reset_chain = true;
1482-
m_sun_cascades[0].size = 9;
1482+
m_sun_cascades[0].size = 20;
14831483
m_sun_cascades[0].bias = m_sun_cascades[0].size * fBias;
14841484

14851485
m_sun_cascades[1].size = 40;

src/Layers/xrRenderPC_R3/r3.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,8 @@ class CRender : public D3DXRenderBase
354354
virtual void rmFar();
355355
virtual void rmNormal();
356356

357+
u32 active_phase() override { return phase; }
358+
357359
// Constructor/destructor/loader
358360
CRender();
359361
virtual ~CRender();

src/Layers/xrRenderPC_R3/r3_R_sun.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ void CRender::init_cacades()
10601060
float fBias = -0.0000025f;
10611061
// float size = MAP_SIZE_START;
10621062
m_sun_cascades[0].reset_chain = true;
1063-
m_sun_cascades[0].size = 9;
1063+
m_sun_cascades[0].size = 20;
10641064
m_sun_cascades[0].bias = m_sun_cascades[0].size * fBias;
10651065

10661066
m_sun_cascades[1].size = 40;

src/Layers/xrRenderPC_R4/r4.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,8 @@ class CRender : public D3DXRenderBase
361361
virtual void rmFar();
362362
virtual void rmNormal();
363363

364+
u32 active_phase() override { return phase; }
365+
364366
// Constructor/destructor/loader
365367
CRender();
366368
virtual ~CRender();

src/Layers/xrRenderPC_R4/r4_R_sun.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ void CRender::init_cacades()
10581058
float fBias = -0.0000025f;
10591059
// float size = MAP_SIZE_START;
10601060
m_sun_cascades[0].reset_chain = true;
1061-
m_sun_cascades[0].size = 9;
1061+
m_sun_cascades[0].size = 20;
10621062
m_sun_cascades[0].bias = m_sun_cascades[0].size * fBias;
10631063

10641064
m_sun_cascades[1].size = 40;

0 commit comments

Comments
 (0)