As I already mentioned in another thread viewtopic.php?f=4&t=142
very small cleanups in Luxcore code.
1, In GetOpenCLBSDFSize() function
Code: Select all
// Add BSDF.isShadowCatcher
bsdfSize += sizeof(int);
2, In Material_Bump function.
Code: Select all
" float3 shadeN = VLOAD3F(&hitPoint->shadeN.x);\n"
"\n"
" shadeN = Texture_Bump(mats[matIndex].bumpTexIndex, hitPoint, mats[matIndex].bumpSampleDistance\n"
" TEXTURES_PARAM);\n"
"\n"
3, In DirectLight_BSDFSampling() function, cosThetaToLight is calculated, but never used.
Code: Select all
" const float cosThetaToLight = fabs(dot(lightRayDir, VLOAD3F(&bsdf->hitPoint.shadeN.x)));\n"
You might have missed to comment or delete these lines .
All the above lines are not a big deal, but just thought of mentioning it.
Yes strictly from next time I will use github requests to make these changes .