-csm_ortho now have description.
-fixed depth bias problem.
-added csm_second_intensity convar.
-maybe fixed angle problems.
This commit is contained in:
2022-09-03 14:04:27 +03:00
parent 0ed9d055cd
commit 4588e41ffc
2 changed files with 10 additions and 7 deletions

View File

@@ -22,13 +22,15 @@ static ConVarRef mat_slopescaledepthbias_shadowmap("mat_slopescaledepthbias_shad
static ConVarRef mat_depthbias_shadowmap("mat_depthbias_shadowmap");
static ConVar scissor("r_flashlightscissor", "0");
static ConVar csm_ortho("csm_ortho","0");
#ifdef MAPBASE
static ConVar csm_ortho("csm_ortho","0", 0, "Turn light into ortho. Im lazy right now to make this works fine");
ConVar csm_ortho_nearz("csm_ortho_nearz", "512");
ConVar csm_ortho_left("csm_ortho_left", "-1000");
ConVar csm_ortho_top("csm_ortho_top", "-1000");
ConVar csm_ortho_bottom("csm_ortho_bottom", "1000");
ConVar csm_ortho_right("csm_ortho_right", "1000");
//ConVar csm_test_color_interpolation("csm_test_color_interpolation","0"); //<2F> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#endif
//-----------------------------------------------------------------------------
// Purpose: main point for change angle of the light
@@ -66,8 +68,7 @@ void C_LightOrigin::Simulate()
BaseClass::Simulate();
}
const char* filter = CommandLine()->ParmValue("-ptfilter", "0.5");
ConVar bebra("csm_filter", filter);
ConVar bebra("csm_filter", "1");
//-----------------------------------------------------------------------------
// Purpose: main csm code