public UIRenderable(Control control) { Debug.Assert(control is not null); _control = control; IsFrozen = true; // disable calling update method per frame HasShadow = false; Activating.Subscribe((f, ct) => SafeCast.As <UIRenderable>(f).OnActivating()); }
public SkyBox() { Activating.Subscribe((f, ct) => SafeCast.As <SkyBox>(f).OnActivating()); }
public SkySphere() { Activating.Subscribe((f, ct) => SafeCast.As <SkySphere>(f).OnActivating()); }
public DeferredRenderingLayer(int sortNumber = DRLayerDefaultSort) : base(sortNumber) { _gBuffer = new GBuffer(); _postProcess = new PbrDeferredRenderingPostProcess(this, static screen => ref screen.Camera.View); Activating.Subscribe((l, ct) => SafeCast.As <DeferredRenderingLayer>(l).OnActivating()); }
public Cube() { Activating.Subscribe((f, ct) => SafeCast.As <Cube>(f).OnActivating()); }