public override void Unpack(string[] keywords) { alphaHole = AlphaHoleMode.None; if (HasFeature(keywords, DefineFeature._ALPHAHOLE)) { alphaHole = AlphaHoleMode.SplatIndex; } else if (HasFeature(keywords, DefineFeature._ALPHAHOLETEXTURE)) { alphaHole = AlphaHoleMode.ClipMap; } alphaBelowHeight = HasFeature(keywords, DefineFeature._ALPHABELOWHEIGHT); }
public override void DrawFeatureGUI(MicroSplatKeywords keywords) { alphaHole = (AlphaHoleMode)EditorGUILayout.EnumPopup(CAlphaHole, alphaHole); alphaBelowHeight = EditorGUILayout.Toggle(CAlphaBelowHeight, alphaBelowHeight); }
public override void DrawFeatureGUI(Material mat) { alphaHole = (AlphaHoleMode)EditorGUILayout.EnumPopup(CAlphaHole, alphaHole); alphaBelowHeight = EditorGUILayout.Toggle(CAlphaBelowHeight, alphaBelowHeight); }