Fixed the engergy conservation problem when pbr mode is toon.
This commit is contained in:
@@ -124,7 +124,11 @@ namespace Misaki.HdrpToon.Editor
|
||||
}
|
||||
else
|
||||
{
|
||||
if (materials.All(mat => mat.GetPBRMode() != PBRMode.KKHair))
|
||||
if (materials.All(mat =>
|
||||
{
|
||||
var pbrMode = mat.GetPBRMode();
|
||||
return pbrMode != PBRMode.KKHair && pbrMode != PBRMode.Toon;
|
||||
}))
|
||||
{
|
||||
editor.ShaderProperty(Properties.metallic, Styles.metallicText);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user