|
|
|
|
|
|
public static GUIContent windStiffnessText = new GUIContent("Stiffness"); |
|
|
|
public static GUIContent windDragText = new GUIContent("Drag"); |
|
|
|
public static GUIContent windShiverDragText = new GUIContent("Shiver Drag"); |
|
|
|
public static GUIContent windShiverDirectionalityText = new GUIContent("Shiver Directionality"); |
|
|
|
|
|
|
|
public static string vertexAnimation = "Vertex Animation"; |
|
|
|
} |
|
|
|
|
|
|
protected const string kWindDrag = "_Drag"; |
|
|
|
protected MaterialProperty windShiverDrag = null; |
|
|
|
protected const string kWindShiverDrag = "_ShiverDrag"; |
|
|
|
protected MaterialProperty windShiverDirectionality = null; |
|
|
|
protected const string kWindShiverDirectionality = "_ShiverDirectionality"; |
|
|
|
|
|
|
|
// Per pixel displacement params
|
|
|
|
protected MaterialProperty enablePerPixelDisplacement = null; |
|
|
|
|
|
|
windStiffness = FindProperty(kWindStiffness, props); |
|
|
|
windDrag = FindProperty(kWindDrag, props); |
|
|
|
windShiverDrag = FindProperty(kWindShiverDrag, props); |
|
|
|
windShiverDirectionality = FindProperty(kWindShiverDirectionality, props); |
|
|
|
} |
|
|
|
|
|
|
|
void TessellationModePopup() |
|
|
|
|
|
|
m_MaterialEditor.ShaderProperty(windStiffness, StylesBaseLit.windStiffnessText); |
|
|
|
m_MaterialEditor.ShaderProperty(windDrag, StylesBaseLit.windDragText); |
|
|
|
m_MaterialEditor.ShaderProperty(windShiverDrag, StylesBaseLit.windShiverDragText); |
|
|
|
m_MaterialEditor.ShaderProperty(windShiverDirectionality, StylesBaseLit.windShiverDirectionalityText); |
|
|
|
EditorGUI.indentLevel--; |
|
|
|
} |
|
|
|
|
|
|
|