예제 #1
0
void SetDisableFBOWater(void* UNUSED(cbdata), bool disabled)
{
	if (!IsOverridden("waterfoam"))
		g_WaterFoam = !disabled;
	if (!IsOverridden("watercoastalwaves"))
		g_WaterCoastalWaves = !disabled;
}
예제 #2
0
void SetDisableFancyWater(ScriptInterface::CxPrivate* UNUSED(pCxPrivate), bool disabled)
{
	if (!IsOverridden("waterfancyeffects"))
		g_WaterFancyEffects = !disabled;
	if (!IsOverridden("waterrealdepth"))
		g_WaterRealDepth = !disabled;
	if (!IsOverridden("shadowsonwater"))
		g_WaterShadows = !disabled;
}
예제 #3
0
void SetDisableFancyWater(void* UNUSED(cbdata), bool disabled)
{
	if (!IsOverridden("waterrealdepth"))
		g_WaterRealDepth = !disabled;
	if (!IsOverridden("waterfoam"))
		g_WaterFoam = !disabled;
	if (!IsOverridden("watercoastalwaves"))
		g_WaterCoastalWaves = !disabled;
	if (!IsOverridden("watershadows"))
		g_WaterShadows = !disabled;
}
예제 #4
0
void SetDisableAllWater(ScriptInterface::CxPrivate* UNUSED(pCxPrivate), bool disabled)
{
	g_WaterUgly = true;
	if (!IsOverridden("waterfancyeffects"))
		g_WaterFancyEffects = !disabled;
	if (!IsOverridden("waterrealdepth"))
		g_WaterRealDepth = !disabled;
	if (!IsOverridden("waterrefraction"))
		g_WaterRefraction = !disabled;
	if (!IsOverridden("waterreflection"))
		g_WaterReflection = !disabled;
	if (!IsOverridden("shadowsonwater"))
		g_WaterShadows = !disabled;
}
예제 #5
0
void SetDisableAllWater(void* UNUSED(cbdata), bool disabled)
{
	if (!IsOverridden("waternormals"))
		g_WaterNormal = !disabled;
	if (!IsOverridden("waterrealdepth"))
		g_WaterRealDepth = !disabled;
	if (!IsOverridden("waterfoam"))
		g_WaterFoam = !disabled;
	if (!IsOverridden("watercoastalwaves"))
		g_WaterCoastalWaves = !disabled;
	if (!IsOverridden("waterrefraction"))
		g_WaterRefraction = !disabled;
	if (!IsOverridden("waterreflection"))
		g_WaterReflection = !disabled;
	if (!IsOverridden("watershadows"))
		g_WaterShadows = !disabled;
}
예제 #6
0
void SetDisableShadowPCF(void* UNUSED(cbdata), bool disabled)
{
	if (!IsOverridden("shadowpcf"))
		g_ShadowPCF = !disabled;
}
예제 #7
0
void SetDisableShadows(void* UNUSED(cbdata), bool disabled)
{
	if (!IsOverridden("shadows"))
		g_Shadows = !disabled;
}
예제 #8
0
void SetDisableS3TC(void* UNUSED(cbdata), bool disabled)
{
	if (!IsOverridden("nos3tc"))
		ogl_tex_override(OGL_TEX_S3TC, disabled ? OGL_TEX_DISABLE : OGL_TEX_ENABLE);
}
예제 #9
0
void SetEnableGLSL(ScriptInterface::CxPrivate* UNUSED(pCxPrivate), bool enabled)
{
	if (!IsOverridden("preferglsl"))
		g_PreferGLSL = enabled;
}
예제 #10
0
void SetDisableShadowPCF(ScriptInterface::CxPrivate* UNUSED(pCxPrivate), bool disabled)
{
	if (!IsOverridden("shadowpcf"))
		g_ShadowPCF = !disabled;
}
예제 #11
0
void SetDisableS3TC(ScriptInterface::CxPrivate* UNUSED(pCxPrivate), bool disabled)
{
	if (!IsOverridden("nos3tc"))
		ogl_tex_override(OGL_TEX_S3TC, disabled ? OGL_TEX_DISABLE : OGL_TEX_ENABLE);
}
예제 #12
0
void SetEnableSmoothLOS(ScriptInterface::CxPrivate* UNUSED(pCxPrivate), bool enabled)
{
	if (!IsOverridden("smoothlos"))
		g_SmoothLOS = enabled;
}
예제 #13
0
void SetEnablePostProc(ScriptInterface::CxPrivate* UNUSED(pCxPrivate), bool enabled)
{
	if (!IsOverridden("postproc"))
		g_PostProc = enabled;
}