-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from KisaragiEffective/refactor/split-interfaces
- Loading branch information
Showing
11 changed files
with
81 additions
and
43 deletions.
There are no files selected for viewing
14 changes: 0 additions & 14 deletions
14
Editor/Transform/Environment/Common/IPostExpansionTransformer.cs
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
Editor/Transform/Environment/Common/IPostExpansionTransformer.cs.meta
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
Editor/Transform/Environment/Common/ISameShaderMaterialTransformPass.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using ResoniteImportHelper.Marker; | ||
using ResoniteImportHelper.UnityEditorUtility; | ||
using UnityEngine; | ||
|
||
namespace ResoniteImportHelper.Transform.Environment.Common | ||
{ | ||
/// <summary> | ||
/// <see cref="Material.shader"/> を変更しない<see cref="Material"/>の書き換えを定義する。 | ||
/// </summary> | ||
internal interface ISameShaderMaterialTransformPass | ||
{ | ||
[NotPublicAPI] | ||
public Material RewriteInline(Material material); | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
Editor/Transform/Environment/Common/ISameShaderMaterialTransformPass.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using ResoniteImportHelper.Marker; | ||
using UnityEngine; | ||
|
||
namespace ResoniteImportHelper.Transform.Environment.Common | ||
{ | ||
/// <summary> | ||
/// <see cref="Shader"/> の集合を定義する。 | ||
/// </summary> | ||
internal interface IShaderFamily | ||
{ | ||
[NotPublicAPI] | ||
public bool Contains(Shader shader); | ||
|
||
[NotPublicAPI] | ||
internal sealed bool Contains(Material material) => this.Contains(material.shader); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
Editor/Transform/Environment/LilToon/LilToonShaderFamily.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using ResoniteImportHelper.Marker; | ||
using ResoniteImportHelper.Transform.Environment.Common; | ||
using UnityEngine; | ||
|
||
namespace ResoniteImportHelper.Transform.Environment.LilToon | ||
{ | ||
internal sealed class LilToonShaderFamily: IShaderFamily | ||
{ | ||
internal static readonly LilToonShaderFamily Instance = new(); | ||
|
||
private LilToonShaderFamily() {} | ||
|
||
[NotPublicAPI] | ||
public bool Contains(Shader shader) | ||
{ | ||
// FIXME: this is fuzzy | ||
return shader.name.StartsWith("Hidden/lil"); | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
Editor/Transform/Environment/LilToon/LilToonShaderFamily.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters