Exemplo n.º 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);
        }
Exemplo n.º 2
0
        public LODRenderTexture(FormatRT format)
        {
            tex = new ResizableRenderTexture(format);

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

            validator.Validation += () => {
                tex.Size = LodSize;
            };
        }
Exemplo n.º 3
0
 public TemporalResizableRenderTexture(FormatRT format)
 {
     this.format = format;
 }