标签:
首先回顾一下典型的纯金属与非金属的PBR属性:
已知某Materail的BaseColor、Metallic、SpecularScale(默认值为0.5),欲求其diff与spec,则有如下公式:
half DielectricSpecular = 0.08 * SpecularScale; half3 DiffuseColor = BaseColor * (1 - Metallic); half3 SpecularColor = DielectricSpecular * (1 - Metallic) + BaseColor * Metallic;
则有:
标签:
原文地址:http://www.cnblogs.com/neoragex2002/p/4446713.html