public void RemoveFilter(VertexFilter filter) { if (filterList.Contains(filter)) { filterList.Remove(filter); } }
public VertexFilter AddFilter(System.Type type) { VertexFilter filter = (VertexFilter)System.Activator.CreateInstance(type, this); filterList.Add(filter); return(filter); }
public void SetFilterIndex(VertexFilter filter, int index) { if (!filterList.Contains(filter)) { return; } filterList.Remove(filter); filterList.Insert(index, filter); }
public void BindToMaterial(Material material) { material.SetTexture("_NeoFur_PositionTexture", positionTexture); material.SetTexture("_NeoFur_NormalTexture", normalTexture); material.SetTexture("_NeoFur_TangentTexture", tangentTexture); material.SetFloat("_NeoFur_ShellDistance", neoFurAsset.ShellDistanceInMeters); for (int i = 0; i < filterList.Count; i++) { VertexFilter filter = filterList[i]; filter.BindToMaterial(material); } }