Пример #1
0
        /// <summary>
        /// Called when [create render core].
        /// </summary>
        /// <returns></returns>
        protected override RenderCore OnCreateRenderCore()
        {
            var core = new ShadowMapCore();

            core.OnUpdateLightSource += Core_OnUpdateLightSource;
            return(core);
        }
Пример #2
0
 /// <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);
 }
Пример #3
0
 /// <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);
 }
Пример #4
0
 /// <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);
 }