From: Mikko Rasa Date: Sun, 21 Feb 2021 21:35:13 +0000 (+0200) Subject: Fix environment map uniform name X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=ad21753804fd949a6c80e44c6f3de8ea8988af0f;p=libs%2Fgl.git Fix environment map uniform name --- diff --git a/source/effects/environmentmap.cpp b/source/effects/environmentmap.cpp index 0216ffc2..a20f73bb 100644 --- a/source/effects/environmentmap.cpp +++ b/source/effects/environmentmap.cpp @@ -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(unit)); + shdata.uniform("environment_map", static_cast(unit)); Bind _bind_sampler(sampler, unit); Bind _bind_env(env_tex, unit);