Fix paralax occlusion setting

master
ShadowNinja 2013-12-06 22:40:04 -05:00
parent e15681080e
commit 96f753a108
1 changed files with 1 additions and 1 deletions

View File

@ -821,7 +821,7 @@ public:
services->setPixelShaderConstant("enableBumpmapping", &enable_bumpmapping, 1); services->setPixelShaderConstant("enableBumpmapping", &enable_bumpmapping, 1);
float enable_parallax_occlusion = 0; float enable_parallax_occlusion = 0;
if (g_settings->getBool("enable_parallax_occlusion"));{ if (g_settings->getBool("enable_parallax_occlusion")) {
enable_parallax_occlusion = 1; enable_parallax_occlusion = 1;
float parallax_occlusion_scale = g_settings->getFloat("parallax_occlusion_scale"); float parallax_occlusion_scale = g_settings->getFloat("parallax_occlusion_scale");
services->setPixelShaderConstant("parallaxOcclusionScale", &parallax_occlusion_scale, 1); services->setPixelShaderConstant("parallaxOcclusionScale", &parallax_occlusion_scale, 1);