Esempio n. 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);
        }
Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 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);
 }