Пример #1
0
        public virtual void UpdateMaterials()
        {
            materials.SetVolumeTexture(this);

            if (!setForGlobal)
            {
                return;
            }

            PositionAndScaleProperty.SetGlobal(PosSize4Shader);
            SlicesShadeProperty.SetGlobal(Slices4Shader);
            TextureInShaderProperty.SetGlobal(ImageMeta.CurrentTexture());
        }
Пример #2
0
        public virtual void UpdateMaterials()
        {
            materials.SetVolumeTexture(this);

            if (!setForGlobal)
            {
                return;
            }

            if (PositionAndScaleProperty.GlobalValue != PosSize4Shader)
            {
                // Debug.Log("Updating pos n shader during move " +Time.frameCount );
                PositionAndScaleProperty.SetGlobal(PosSize4Shader);
            }

            SlicesShadeProperty.SetGlobal(Slices4Shader);
            TextureInShaderProperty.SetGlobal(ImageMeta.CurrentTexture());
        }