提交 179c93b5 编写于 作者: M Mr.doob

MeshPhysicalMaterial: Reverted to @WestLangley specularColor formula.

上级 623df505
PhysicalMaterial material;
material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );
material.specularRoughness = roughnessFactor * 0.5 + 0.5; // disney's remapping of [ 0, 1 ] roughness to [ 0.5, 1 ]
material.specularColor = mix( vec3( 0.04 ) * reflectivity, diffuseColor.rgb, metalnessFactor );
material.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册