Updated OutlineScope;
Reorgnize shader code;
This commit is contained in:
@@ -12,9 +12,9 @@ namespace Misaki.HdrpToon.Editor
|
||||
return (PBRMode)shaderGUI.GetUIScope<SurfaceOptionsScope>().FindProperty("_PBR_Mode").floatValue;
|
||||
}
|
||||
|
||||
public static bool HasFeature(this UTSShaderGUI shaderGUI, SurfaceFeatureFlags feature)
|
||||
public static bool HasFeature(this UTSShaderGUI shaderGUI, SurfaceFeature feature)
|
||||
{
|
||||
return ((SurfaceFeatureFlags)shaderGUI.GetUIScope<SurfaceOptionsScope>().FindProperty("_Surface_Features").floatValue & feature) != 0;
|
||||
return ((SurfaceFeature)shaderGUI.GetUIScope<SurfaceOptionsScope>().FindProperty("_Surface_Features").floatValue & feature) != 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user