improve bending.

This commit is contained in:
hecomi
2016-11-12 04:25:12 +09:00
parent 804bfb96bd
commit 3a705732d1
5 changed files with 13 additions and 9 deletions
@@ -13,8 +13,9 @@ public class Texture : MonoBehaviour
set
{
monitor_ = value;
material = GetComponent<Renderer>().material;
material = GetComponent<Renderer>().material; // clone
material.mainTexture = monitor_.texture;
material.SetFloat("_Width", transform.localScale.x);
}
}