コード例 #1
0
        public ResizableRenderTexture(FormatRT format)
        {
            this.format = format;

            validator = new Validator();

            validator.Validation += () => CreateTexture(size.x, size.y);
            validator.Validated  += () => NotifyAfterCreateTexture();
            validator.SetCheckers(() =>
                                  tex != null && tex.width == size.x && tex.height == size.y);
        }
コード例 #2
0
        public LODRenderTexture(FormatRT format)
        {
            tex = new ResizableRenderTexture(format);

            tex.AfterCreateTexture   += t => NotifyAfterCreateTexture();
            tex.BeforeDestroyTexture += t => NotifyBeforeDestroyTexture();

            validator.Validation += () => {
                tex.Size = LodSize;
            };
        }
コード例 #3
0
 public TemporalResizableRenderTexture(FormatRT format)
 {
     this.format = format;
 }