/// <summary> /// Called when [create render core]. /// </summary> /// <returns></returns> protected override RenderCore OnCreateRenderCore() { var core = new ShadowMapCore(); core.OnUpdateLightSource += Core_OnUpdateLightSource; return(core); }
/// <summary> /// To override Attach routine, please override this. /// </summary> /// <param name="effectsManager"></param> /// <returns> /// Return true if attached /// </returns> protected override bool OnAttach(IEffectsManager effectsManager) { base.OnAttach(effectsManager); shadowCore = RenderCore as ShadowMapCore; this.Invalidated += Host_SceneGraphUpdated; sceneChanged = true; return(true); }
/// <summary> /// To override Attach routine, please override this. /// </summary> /// <param name="host"></param> /// <returns> /// Return true if attached /// </returns> protected override bool OnAttach(IRenderHost host) { base.OnAttach(host); shadowCore = RenderCore as ShadowMapCore; host.SceneGraphUpdated += Host_SceneGraphUpdated; sceneChanged = true; return(true); }
/// <summary> /// To override Attach routine, please override this. /// </summary> /// <param name="host"></param> /// <returns> /// Return true if attached /// </returns> protected override bool OnAttach(IRenderHost host) { base.OnAttach(host); shadowCore = RenderCore as ShadowMapCore; return(true); }