Exemple #1
0
        void DestroySharedTextureProtocol()
        {
            if (_sharedTextureProtocol != null)
            {
                Destroy(_sharedTextureProtocol);

                _sharedTextureProtocol = null;
            }
        }
Exemple #2
0
        void Composite()
        {
            _compositeTexture.DiscardContents(true, true);

            _blitMaterial.SetTexture("_NearTex", _foregroundTexture);
            _blitMaterial.SetTexture("_FarTex", _backgroundTexture);
            Graphics.Blit(null, _compositeTexture, _blitMaterial);

            SharedTextureProtocol.SetOutputTexture(_compositeTexture);
        }
Exemple #3
0
 void CreateSharedTextureProtocol()
 {
     _sharedTextureProtocol = gameObject.AddComponent <SharedTextureProtocol>();
 }