コード例 #1
0
 public void RemoveFilter(VertexFilter filter)
 {
     if (filterList.Contains(filter))
     {
         filterList.Remove(filter);
     }
 }
コード例 #2
0
        public VertexFilter AddFilter(System.Type type)
        {
            VertexFilter filter = (VertexFilter)System.Activator.CreateInstance(type, this);

            filterList.Add(filter);
            return(filter);
        }
コード例 #3
0
 public void SetFilterIndex(VertexFilter filter, int index)
 {
     if (!filterList.Contains(filter))
     {
         return;
     }
     filterList.Remove(filter);
     filterList.Insert(index, filter);
 }
コード例 #4
0
        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);
            }
        }