|
|
|
|
|
|
useTangentPlane, tangentX, tangentY, mmPerUnit, pixelsPerMm, \ |
|
|
|
totalIrradiance, totalWeight) \ |
|
|
|
{ \ |
|
|
|
float centerRadius = kernel[profileID][0][0]; \ |
|
|
|
float3 centerWeight = KernelValCircle(0, shapeParam) * centerRcpPdf; \ |
|
|
|
float3 centerWeight = KernelValCircle(centerRadius, shapeParam) * centerRcpPdf; \ |
|
|
|
\ |
|
|
|
totalIrradiance = centerWeight * centerIrradiance; \ |
|
|
|
totalWeight = centerWeight; \ |
|
|
|