]> git.tdb.fi Git - libs/gl.git/commitdiff
Fix environment map uniform name
authorMikko Rasa <tdb@tdb.fi>
Sun, 21 Feb 2021 21:35:13 +0000 (23:35 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 21 Feb 2021 21:35:13 +0000 (23:35 +0200)
source/effects/environmentmap.cpp

index 0216ffc22aad0ca7b31c0527b437d3c616d828a4..a20f73bb9567dc84d4c3f2c6c6082a701dfff42a 100644 (file)
@@ -107,7 +107,7 @@ void EnvironmentMap::render(Renderer &renderer, const Tag &tag) const
        Renderer::Push _push_rend(renderer);
 
        unsigned unit = renderer.allocate_effect_texunit();
-       shdata.uniform("environment", static_cast<int>(unit));
+       shdata.uniform("environment_map", static_cast<int>(unit));
        Bind _bind_sampler(sampler, unit);
        Bind _bind_env(env_tex, unit);