Shader code cleanupand bug fix.
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
namespace Misaki.HdrpToon.Editor
|
||||
{
|
||||
internal static class UTSShaderGUIHelpers
|
||||
{
|
||||
public static ShadingMode GetShadingMode(this UTSShaderGUI shaderGUI)
|
||||
{
|
||||
return (ShadingMode)shaderGUI.GetUIScope<SurfaceOptionsScope>().FindProperty("_Shading_Mode").floatValue;
|
||||
}
|
||||
|
||||
public static PBRMode GetPBRMode(this UTSShaderGUI shaderGUI)
|
||||
{
|
||||
return (PBRMode)shaderGUI.GetUIScope<SurfaceOptionsScope>().FindProperty("_PBR_Mode").floatValue;
|
||||
}
|
||||
|
||||
public static bool HasFeature(this UTSShaderGUI shaderGUI, SurfaceFeature feature)
|
||||
{
|
||||
return ((SurfaceFeature)shaderGUI.GetUIScope<SurfaceOptionsScope>().FindProperty("_Surface_Features").floatValue & feature) != 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4aa9e028e20a2014ab0e2a3ea6541f0e
|
||||
Reference in New Issue
Block a user