Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix paralax occlusion setting
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+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", ¶llax_occlusion_scale, 1); |
|
|