コード例 #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);
 }
コード例 #2
0
 protected override bool OnAttach(IEffectsManager effectsManager)
 {
     // --- attach
     if (!base.OnAttach(effectsManager))
     {
         return(false);
     }
     instanceParamBuffer.Initialize();
     return(true);
 }
コード例 #3
0
ファイル: InstancingMeshNode.cs プロジェクト: alir14/3DModel
        /// <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);
            }
        }
コード例 #4
0
 /// <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);
     }
 }