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); }
public LODRenderTexture(FormatRT format) { tex = new ResizableRenderTexture(format); tex.AfterCreateTexture += t => NotifyAfterCreateTexture(); tex.BeforeDestroyTexture += t => NotifyBeforeDestroyTexture(); validator.Validation += () => { tex.Size = LodSize; }; }
public TemporalResizableRenderTexture(FormatRT format) { this.format = format; }