PostProcessingComponent.cs 425 B

1234567891011121314151617181920
  1. using System;
  2. namespace UnityEngine.PostProcessing
  3. {
  4. public abstract class PostProcessingComponent<T> : PostProcessingComponentBase where T : PostProcessingModel
  5. {
  6. public T model { get; internal set; }
  7. public virtual void Init(PostProcessingContext pcontext, T pmodel)
  8. {
  9. this.context = pcontext;
  10. this.model = pmodel;
  11. }
  12. public override PostProcessingModel GetModel()
  13. {
  14. return this.model;
  15. }
  16. }
  17. }