Ejemplo n.º 1
0
        public static SgtCloudsphereModel Create(SgtCloudsphere cloudsphere)
        {
            var model = SgtComponentPool <SgtCloudsphereModel> .Pop(cloudsphere.transform, "Cloudsphere Model", cloudsphere.gameObject.layer);

            model.Cloudsphere = cloudsphere;

            return(model);
        }
Ejemplo n.º 2
0
        public void RemoveTexture()
        {
            if (cachedCloudsphereSet == false)
            {
                cachedCloudsphere    = GetComponent <SgtCloudsphere>();
                cachedCloudsphereSet = true;
            }

            if (cachedCloudsphere.DepthTex == generatedTexture)
            {
                cachedCloudsphere.DepthTex = null;

                cachedCloudsphere.UpdateDepthTex();
            }
        }
Ejemplo n.º 3
0
        public void ApplyTexture()
        {
            if (cachedCloudsphereSet == false)
            {
                cachedCloudsphere    = GetComponent <SgtCloudsphere>();
                cachedCloudsphereSet = true;
            }

            if (cachedCloudsphere.DepthTex != generatedTexture)
            {
                cachedCloudsphere.DepthTex = generatedTexture;

                cachedCloudsphere.UpdateDepthTex();
            }
        }