2021-12-15 16:29:44 +03:00

30 lines
781 B
C#

//////////////////////////////////////////////////////
// MK Toon Uniform //
// //
// Created by Michael Kremmel //
// www.michaelkremmel.de //
// Copyright © 2021 All rights reserved. //
//////////////////////////////////////////////////////
namespace MK.Toon
{
public class Uniform
{
protected string _name;
public string name
{
get{ return _name; }
}
protected int _id;
public int id
{
get{ return _id; }
}
public Uniform(string name)
{
_name = name;
_id = UnityEngine.Shader.PropertyToID(name);
}
}
}