Added SurfaceFeatureFlags;
Added OutlineScope; Added AngelRingScope; Change up Outline pass
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user