|
|
|
|
|
|
public override void FindProperties(MaterialProperty[] properties) |
|
|
|
{ |
|
|
|
base.FindProperties(properties); |
|
|
|
alphaClipProp = FindProperty("_AlphaClip", properties); |
|
|
|
alphaCutoffProp = FindProperty("_Cutoff", properties); |
|
|
|
sampleGIProp = FindProperty("_SampleGI", properties, false); |
|
|
|
bumpMap = FindProperty("_BumpMap", properties, false); |
|
|
|
} |
|
|
|
|
|
|
base.ShaderPropertiesGUI(material); |
|
|
|
GUILayout.Label(Styles.surfaceProperties, EditorStyles.boldLabel); |
|
|
|
int surfaceTypeValue = (int)surfaceTypeProp.floatValue; |
|
|
|
if (alphaClipProp.floatValue >= 1.0f) |
|
|
|
surfaceTypeValue = 1; |
|
|
|
|
|
|
|
|
|
|
|
EditorGUILayout.Space(); |
|
|
|
m_MaterialEditor.ShaderProperty(sampleGIProp, Styles.sampleGILabel); |
|
|
|
if (sampleGIProp.floatValue >= 1.0) |
|
|
|