Skip to content

Commit

Permalink
dirty fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iaomw committed Jun 20, 2024
1 parent 384e45a commit cc75adf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion zenovis/xinxinoptix/optixPathTracer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2108,7 +2108,10 @@ void using_hdr_sky(bool enable) {
}

void show_background(bool enable) {
state.params.show_background = enable;
if (enable != state.params.show_background) {
state.params.show_background = enable;
state.params.subframe_index = 0;
}
}

void updatePortalLights(const std::vector<Portal>& portals) {
Expand Down

0 comments on commit cc75adf

Please sign in to comment.