protected override bool OnAttach(IRenderTechnique technique) { depthPrepassCore = Collect(new DepthPrepassCore()); depthPrepassCore.Attach(technique); return(base.OnAttach(technique)); }
protected override void OnDetach() { depthPrepassCore.Detach(); depthPrepassCore = null; base.OnDetach(); }
protected override bool OnAttach(IRenderTechnique technique) { depthPrepassCore = new DepthPrepassCore(); depthPrepassCore.Attach(technique); return(true); }