示例#1
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)
 {
     // --- attach
     if (!base.OnAttach(host))
     {
         return(false);
     }
     instanceParamBuffer.Initialize();
     return(true);
 }
 protected override bool OnAttach(IEffectsManager effectsManager)
 {
     // --- attach
     if (!base.OnAttach(effectsManager))
     {
         return(false);
     }
     instanceParamBuffer.Initialize();
     return(true);
 }
示例#3
0
        /// <summary>
        /// Called when [attach].
        /// </summary>
        /// <param name="host">The host.</param>
        /// <returns></returns>
        protected override bool OnAttach(IRenderHost host)
        {
            if (base.OnAttach(host))
            {
                instanceParamBuffer.Initialize();

                return(true);
            }
            else
            {
                return(false);
            }
        }
 /// <summary>
 /// Called when [attach].
 /// </summary>
 /// <param name="host">The host.</param>
 /// <returns></returns>
 protected override bool OnAttach(IRenderHost host)
 {
     if (base.OnAttach(host))
     {
         bonesBufferModel.Initialize();
         boneSkinRenderCore.VertexBoneIdBuffer = bonesBufferModel;
         return(true);
     }
     else
     {
         return(false);
     }
 }