Skip to content

Commit

Permalink
clarify the exp2 overload (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-Leo-Smith committed Apr 23, 2024
1 parent 26c9440 commit f75f1bd
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 77 deletions.
4 changes: 2 additions & 2 deletions src/integrators/aov.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@ void AuxiliaryBufferPathTracingInstance::_render_one_camera(
});
};
auto exposure = camera->film()->node()->exposure();
auto radiance = spectrum->srgb(swl, Li * shutter_weight) * exp2(exposure);
auto diffuse = min(radiance, spectrum->srgb(swl, Li_diffuse * shutter_weight) * exp2(exposure));
auto radiance = spectrum->srgb(swl, Li * shutter_weight) * luisa::exp2(exposure);
auto diffuse = min(radiance, spectrum->srgb(swl, Li_diffuse * shutter_weight) * luisa::exp2(exposure));
auto specular = radiance - diffuse;
aux_buffers.at("sample")->accumulate(pixel_id, make_float4(radiance, 1.f));
aux_buffers.at("radiance_2")->accumulate(pixel_id, make_float4(radiance * radiance, 1.f));
Expand Down
Loading

0 comments on commit f75f1bd

Please sign in to comment.