Skip to content

Commit

Permalink
make bloom disable work
Browse files Browse the repository at this point in the history
  • Loading branch information
junjie020 committed Jun 20, 2024
1 parent 66ebed8 commit d4ee720
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/ant.render/postprocess/tonemapping.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,9 @@ local function update_properties(material)

local scenehandle = ifg.get_last_output("tonemapping", 1)
material.s_scene_color = scenehandle
local bloomhandle = ifg.get_last_output("tonemapping", 2)
if bloomhandle then
assert(ENABLE_BLOOM)
material.s_bloom_color = bloomhandle
if ENABLE_BLOOM then
local bloomhandle = ifg.get_last_output("tonemapping", 2)
material.s_bloom_color = assert(bloomhandle)
end
end

Expand Down

0 comments on commit d4ee720

Please sign in to comment.