|
|
|
|
|
|
properties.AddShaderProperty(prop); |
|
|
|
} |
|
|
|
|
|
|
|
public override List<PreviewProperty> GetPreviewProperties(string name) |
|
|
|
public override void GetPreviewProperties(List<PreviewProperty> properties, string name) |
|
|
|
List<PreviewProperty> props = new List<PreviewProperty>(); |
|
|
|
props.Add(new PreviewProperty(PropertyType.Vector1) |
|
|
|
properties.Add(new PreviewProperty(PropertyType.Vector1) |
|
|
|
props.Add(new PreviewProperty(PropertyType.Vector1) |
|
|
|
properties.Add(new PreviewProperty(PropertyType.Vector1) |
|
|
|
props.Add(new PreviewProperty(PropertyType.Vector1) |
|
|
|
properties.Add(new PreviewProperty(PropertyType.Vector1) |
|
|
|
{ |
|
|
|
name = string.Format("{0}_AlphasLength", name), |
|
|
|
floatValue = value.alphaKeys.Length |
|
|
|
|
|
|
{ |
|
|
|
props.Add(new PreviewProperty(PropertyType.Vector4) |
|
|
|
properties.Add(new PreviewProperty(PropertyType.Vector4) |
|
|
|
{ |
|
|
|
name = string.Format("{0}_ColorKey{1}", name, i), |
|
|
|
vector4Value = i < value.colorKeys.Length ? GradientUtils.ColorKeyToVector(value.colorKeys[i]) : Vector4.zero |
|
|
|
|
|
|
for(int i = 0; i < 8; i++) |
|
|
|
{ |
|
|
|
props.Add(new PreviewProperty(PropertyType.Vector2) |
|
|
|
properties.Add(new PreviewProperty(PropertyType.Vector2) |
|
|
|
return props; |
|
|
|
} |
|
|
|
|
|
|
|
public override void CopyValuesFrom(MaterialSlot foundSlot) |
|
|
|