예제 #1
0
            protected override void Apply(BlitFxBase effect)
            {
                var material = effect.Material;

                if (material)
                {
                    material.SetFloat(FieldName, Value);
                }
            }
예제 #2
0
            protected override void Apply(BlitFxBase effect)
            {
                var material = effect.Material;

                if (material == null)
                {
                    return;
                }
                if (!material.HasProperty(FieldName))
                {
                    return;
                }
                var current_texture = material.GetTexture(FieldName);

                if (current_texture != ActiveTexture)
                {
                    material.SetTexture(FieldName, ActiveTexture);
                }
                //effect.Material.SetTextureScale(FieldName, Scale);
                //effect.Material.SetTextureOffset(FieldName, Offset);
            }
예제 #3
0
 protected abstract void Apply(BlitFxBase effect);