Skip to content

Commit

Permalink
[OpenGL] Pass WZ_VOLUMETRIC_LIGHTING_ENABLED define to shader
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Mar 3, 2024
1 parent ea16d23 commit 1e365fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ivis_opengl/gfx_api_gl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<size_t>(lightingConstants.isPointLightPerPixelEnabled)),
std::make_pair("WZ_VOLUMETRIC_LIGHTING_ENABLED", static_cast<size_t>(lightingConstants.isVolumetricLightingEnabled)),
};

const auto& replacer = [&fragmentShaderStr](const std::string& define, const auto& value) -> bool {
Expand Down

0 comments on commit 1e365fe

Please sign in to comment.