1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-17 23:05:07 -05:00

Fix paralax occlusion setting

This commit is contained in:
ShadowNinja 2013-12-06 22:40:04 -05:00
parent e15681080e
commit 96f753a108

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);