From d444e40c019a5674e857cad775e474ea226be5ec Mon Sep 17 00:00:00 2001 From: Mike Date: Sat, 23 Dec 2023 23:35:23 +0800 Subject: [PATCH] fix gpt --- src/integrators/gpt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/integrators/gpt.cpp b/src/integrators/gpt.cpp index 8014a9c1..7e463be4 100644 --- a/src/integrators/gpt.cpp +++ b/src/integrators/gpt.cpp @@ -338,7 +338,7 @@ luisa::unique_ptr 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));