Skip to content

Commit

Permalink
Fix paralax occlusion setting
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowNinja committed Dec 7, 2013
1 parent e156810 commit 96f753a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ class GameGlobalShaderConstantSetter : public IShaderConstantSetter
services->setPixelShaderConstant("enableBumpmapping", &enable_bumpmapping, 1);

float enable_parallax_occlusion = 0;
if (g_settings->getBool("enable_parallax_occlusion"));{
if (g_settings->getBool("enable_parallax_occlusion")) {
enable_parallax_occlusion = 1;
float parallax_occlusion_scale = g_settings->getFloat("parallax_occlusion_scale");
services->setPixelShaderConstant("parallaxOcclusionScale", &parallax_occlusion_scale, 1);
Expand Down

0 comments on commit 96f753a

Please sign in to comment.