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:
parent
e15681080e
commit
96f753a108
@ -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", ¶llax_occlusion_scale, 1);
|
services->setPixelShaderConstant("parallaxOcclusionScale", ¶llax_occlusion_scale, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user