必威体育Betway必威体育官网
当前位置:首页 > IT技术

perceptual Roughness vs Roughness

时间:2019-08-28 20:10:00来源:IT技术作者:seo实验室小编阅读:77次「手机版」
 

roughness

Roughness

https://seblagarde.wordpress.com/2014/04/14/dontnod-physically-based-rendering-chart-for-unreal-engine-4/

The specular part of Disney “principled” BRDF is a GGX BRDF. It use a roughness parameter. This roughness is the “Disney roughness”, not the real GGX roughness. Disney Roughness = sqrt(Roughness). When use at runtime this Disney Roughness is transform to the GGX roughness with roughness = Disney Roughness * Disney Roughness.

UnityStandardBRDF.cginc

//-----------------------------------------------------------------------------

// Helper to convert smoothness to roughness

//-----------------------------------------------------------------------------

half PerceptualRoughnessToRoughness(half perceptualRoughness)

{

return perceptualRoughness * perceptualRoughness;

}

half RoughnessToPerceptualRoughness(half roughness)

{

return sqrt(roughness);

}

// Smoothness is the user facing name

// it should be perceptualSmoothness but we don't want the user to have to deal with this name

half SmoothnessToRoughness(half smoothness)

{

return (1 - smoothness) * (1 - smoothness);

}

half SmoothnessToPerceptualRoughness(half smoothness)

{

return (1 - smoothness);

}

http://essay.utwente.nl/70708/1/Jimenez%20Kwast_MA_EEMCS.pdf

相关阅读

分享到:

栏目导航

推荐阅读

热门阅读