Skip to content

Commit

Permalink
fix gpt
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-Leo-Smith committed Dec 23, 2023
1 parent fb0bbfd commit d444e40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/integrators/gpt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ luisa::unique_ptr<Integrator::Instance> GradientPathTracing::build(
$else {
// Reflection
auto tangent_space_half_vector = normalize(tangent_space_main_wi + tangent_space_main_wo);
auto tangent_space_shifted_wo = reflect(tangent_space_shifted_wi, tangent_space_half_vector);
auto tangent_space_shifted_wo = reflect(-tangent_space_shifted_wi, tangent_space_half_vector);

auto wo_dot_h = abs(dot(tangent_space_shifted_wo, tangent_space_half_vector)) / abs(dot(tangent_space_main_wo, tangent_space_half_vector));

Expand Down

0 comments on commit d444e40

Please sign in to comment.