From 1e365fe51fe9c45d35c71abc6bb1928191475d10 Mon Sep 17 00:00:00 2001 From: past-due <30942300+past-due@users.noreply.github.com> Date: Sun, 3 Mar 2024 15:26:54 -0500 Subject: [PATCH] [OpenGL] Pass WZ_VOLUMETRIC_LIGHTING_ENABLED define to shader --- lib/ivis_opengl/gfx_api_gl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ivis_opengl/gfx_api_gl.cpp b/lib/ivis_opengl/gfx_api_gl.cpp index cd3e7ad4f83..b1dde35e852 100644 --- a/lib/ivis_opengl/gfx_api_gl.cpp +++ b/lib/ivis_opengl/gfx_api_gl.cpp @@ -1657,6 +1657,7 @@ static bool patchFragmentShaderPointLightsDefines(std::string& fragmentShaderStr std::make_pair("WZ_MAX_INDEXED_POINT_LIGHTS", gfx_api::max_indexed_lights), std::make_pair("WZ_BUCKET_DIMENSION", gfx_api::bucket_dimension), std::make_pair("WZ_POINT_LIGHT_ENABLED", static_cast(lightingConstants.isPointLightPerPixelEnabled)), + std::make_pair("WZ_VOLUMETRIC_LIGHTING_ENABLED", static_cast(lightingConstants.isVolumetricLightingEnabled)), }; const auto& replacer = [&fragmentShaderStr](const std::string& define, const auto& value) -> bool {