From ad21753804fd949a6c80e44c6f3de8ea8988af0f Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 21 Feb 2021 23:35:13 +0200 Subject: [PATCH] Fix environment map uniform name --- source/effects/environmentmap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.45.2