Example #1
0
        public void SetHardwareSkinningParam(int boneCount, int weightCount, SkinningType skinningType,
                                             bool correctAntipodalityHandling, bool scalingShearingSupport)
        {
            this.skinningType = skinningType;

            if (skinningType == RTShaderSystem.SkinningType.DualQuaternion)
            {
                if (this.dualQuat == null)
                {
                    this.dualQuat = new DualQuaternionSkinning();
                }
                this.activeTechnique = this.dualQuat;
            }
            else
            {
                if (this.linear == null)
                {
                    this.linear = new LinearSkinning();
                }
                this.activeTechnique = this.linear;
            }

            this.activeTechnique.SetHardwareSkinningParam(boneCount, weightCount, correctAntipodalityHandling,
                                                          scalingShearingSupport);
        }
Example #2
0
		public void SetHardwareSkinningParam( int boneCount, int weightCount, SkinningType skinningType,
		                                      bool correctAntipodalityHandling, bool scalingShearingSupport )
		{
			this.skinningType = skinningType;

			if ( skinningType == RTShaderSystem.SkinningType.DualQuaternion )
			{
				if ( this.dualQuat == null )
				{
					this.dualQuat = new DualQuaternionSkinning();
				}
				this.activeTechnique = this.dualQuat;
			}
			else
			{
				if ( this.linear == null )
				{
					this.linear = new LinearSkinning();
				}
				this.activeTechnique = this.linear;
			}

			this.activeTechnique.SetHardwareSkinningParam( boneCount, weightCount, correctAntipodalityHandling,
			                                               scalingShearingSupport );
		}