Skip to content
Permalink
Browse files

Fix paralax occlusion setting

  • Loading branch information
ShadowNinja committed Dec 7, 2013
1 parent e156810 commit 96f753a108600619f94015bf889a73d97e44ce3a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/game.cpp
@@ -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);

0 comments on commit 96f753a

Please sign in to comment.
You can’t perform that action at this time.