projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e156810
)
Fix paralax occlusion setting
author
ShadowNinja
<shadowninja@minetest.net>
Sat, 7 Dec 2013 03:40:04 +0000
(22:40 -0500)
committer
ShadowNinja
<shadowninja@minetest.net>
Sat, 7 Dec 2013 03:42:09 +0000
(22:42 -0500)
src/game.cpp
patch
|
blob
|
history
diff --git
a/src/game.cpp
b/src/game.cpp
index 22abe4c74737927f46315e226d5d752e32473c3c..68bd12b97b72d65b3b29e9ca11b7c5deea50d206 100644
(file)
--- a/
src/game.cpp
+++ b/
src/game.cpp
@@
-821,7
+821,7
@@
public:
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);