Fix anisotropic Beckmann using isotropic sampling

This commit is contained in:
Weizhen Huang 2023-01-19 11:22:16 +01:00
parent 2907227db2
commit eb657633ed
1 changed files with 1 additions and 1 deletions

View File

@ -1006,7 +1006,7 @@ ccl_device int bsdf_microfacet_beckmann_sample(KernelGlobals kg,
float3 local_m;
float G1i;
local_m = microfacet_sample_stretched(kg, local_I, alpha_x, alpha_x, randu, randv, true, &G1i);
local_m = microfacet_sample_stretched(kg, local_I, alpha_x, alpha_y, randu, randv, true, &G1i);
float3 m = X * local_m.x + Y * local_m.y + Z * local_m.z;
float cosThetaM = local_m.z;