Ejemplo n.º 1
0
        void Awake()
        {
            Ins             = this;
            this._projector = GetComponent <Projector>();
            RenderTexture texture = new RenderTexture((int)this.Size.x, (int)this.Size.y, 0, this.Format);

            this.shadowRendererCamera = GetComponent <Camera>();
            //			this.shadowRendererCamera.enabled = false;
            this.shadowRendererCamera.targetTexture = texture;

            this.Material.mainTexture = texture;
            this._projector.material  = this.Material;
        }
Ejemplo n.º 2
0
 void OnDestroy()
 {
     Ins = null;
 }