|
|
|
|
|
|
|
|
|
|
if (NdotL > 0.0) |
|
|
|
{ |
|
|
|
float3 H = normalize(L + V); |
|
|
|
float LdotH = dot(L, H); |
|
|
|
float disneyDiffuse = DisneyDiffuseNoPI(NdotV, NdotL, LdotH, RoughnessToPerceptualRoughness(roughness)); |
|
|
|
float LdotV = dot(L, V); |
|
|
|
float disneyDiffuse = DisneyDiffuseNoPI(NdotV, NdotL, LdotV, RoughnessToPerceptualRoughness(roughness)); |
|
|
|
|
|
|
|
acc.z += disneyDiffuse * weightOverPdf; |
|
|
|
} |
|
|
|