protected override void Apply(BlitFxBase effect) { var material = effect.Material; if (material) { material.SetFloat(FieldName, Value); } }
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); }
protected abstract void Apply(BlitFxBase effect);