@@ -746,9 +746,6 @@ nbl_glsl_MC_eval_pdf_aov_t nbl_glsl_MC_instr_bxdf_eval_and_pdf_common(
746
746
in uint op, in bool is_not_brdf,
747
747
in nbl_glsl_MC_params_t params,
748
748
in mat2x3 ior, in mat2x3 ior2,
749
- #if GEN_CHOICE_STREAM>= GEN_CHOICE_WITH_AOV_EXTRACTION
750
- in vec3 normal,
751
- #endif
752
749
in float absOrMaxNdotV,
753
750
in float absOrMaxNdotL,
754
751
in nbl_glsl_LightSample s,
@@ -775,7 +772,7 @@ nbl_glsl_MC_eval_pdf_aov_t nbl_glsl_MC_instr_bxdf_eval_and_pdf_common(
775
772
const float a = nbl_glsl_MC_params_getAlpha(params);
776
773
const float a2 = a* a;
777
774
#if GEN_CHOICE_STREAM>= GEN_CHOICE_WITH_AOV_EXTRACTION
778
- result.aov.normal = normal ;
775
+ result.aov.normal = currInteraction.inner.isotropic.N ;
779
776
#endif
780
777
781
778
#if defined(OP_DIFFUSE) || defined(OP_DIFFTRANS)
@@ -961,9 +958,6 @@ void nbl_glsl_MC_instr_eval_and_pdf_execute(
961
958
{
962
959
result = nbl_glsl_MC_instr_bxdf_eval_and_pdf_common(
963
960
instr,op,is_not_brdf,params,ior,ior2,
964
- #if GEN_CHOICE_STREAM>= GEN_CHOICE_WITH_AOV_EXTRACTION
965
- precomp.N,
966
- #endif
967
961
NdotV,NdotL,
968
962
s,microfacet,run
969
963
);
@@ -1235,7 +1229,7 @@ nbl_glsl_LightSample nbl_bsdf_cos_generate(
1235
1229
const float ax = nbl_glsl_MC_params_getAlpha(params);
1236
1230
const float ax2 = ax* ax;
1237
1231
#if GEN_CHOICE_STREAM>= GEN_CHOICE_WITH_AOV_EXTRACTION
1238
- out_values.aov.normal = precomp .N;
1232
+ out_values.aov.normal = currInteraction.inner.isotropic .N;
1239
1233
#endif
1240
1234
1241
1235
// TODO: refactor
0 commit comments