Added SurfaceFeatureFlags;

Added OutlineScope;
Added AngelRingScope;

Change up Outline pass
This commit is contained in:
Misaki
2025-01-29 21:54:17 +09:00
parent 018300e046
commit d8b12a0ca9
18 changed files with 249 additions and 248 deletions

View File

@@ -2413,14 +2413,14 @@ namespace UnityEditor.Rendering.Toon
{
material.SetFloat(ShaderPropOutline, 0);
//The keywords on the UTCS_Outline.cginc side are also toggled around.
material.EnableKeyword("_OUTLINE_NML");
material.DisableKeyword("_OUTLINE_POS");
material.EnableKeyword("_OUTLINE_MODE_NML");
material.DisableKeyword("_OUTLINE_MODE_POS");
}
else if (m_outlineMode == OutlineMode.PositionScaling)
{
material.SetFloat(ShaderPropOutline, 1);
material.EnableKeyword("_OUTLINE_POS");
material.DisableKeyword("_OUTLINE_NML");
material.EnableKeyword("_OUTLINE_MODE_POS");
material.DisableKeyword("_OUTLINE_MODE_NML");
}
GUI_FloatProperty(material, Styles.outlineWidthText);