Skip to content

Commit

Permalink
modify python
Browse files Browse the repository at this point in the history
  • Loading branch information
jkxing committed May 6, 2024
1 parent 7eb5927 commit 367b34f
Show file tree
Hide file tree
Showing 6 changed files with 558 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/films/display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ class DisplayInstance final : public Film::Instance {
}

void _display() const noexcept {
auto scale = luisa::exp2(_exposure);
auto scale = 1.0f;
auto is_ldr = _window->framebuffer().storage() != PixelStorage::FLOAT4;
auto size = _framebuffer.size();
*_stream << _blit(_tone_mapping, is_ldr, scale).dispatch(size);
Expand Down
1 change: 1 addition & 0 deletions src/integrators/megappm_diff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1368,6 +1368,7 @@ class MegakernelPhotonMappingDiffInstance : public DifferentiableIntegrator::Ins
grad_beta += grad(beta_diff);
grad_dis = grad(rel_dis_diff);
};

auto grad_b = get_bary_grad(grad_p, it->instance_id(), it->triangle_id());
count_neighbors += 1u;
grad_bary += grad_b;
Expand Down
Loading

0 comments on commit 367b34f

Please sign in to comment.