Esempio n. 1
0
        public SkinnedShader Clone()
        {
            SkinnedShader clone = new SkinnedShader(game);

            clone.shader = shader.Clone();

            clone.LoadTechniques();
            clone.LoadParameters();
            return(clone);
        }
Esempio n. 2
0
 public SkinnedMesh(SkinnedModel model)
 {
     shader = model.BaseShader.Clone();
 }
 public SkinnedModel(IXNAGame _game)
 {
     game              = _game;
     BaseShader        = new SkinnedShader(game, new EffectPool());
     vertexDeclaration = AttributeSystem.CreateVertexDeclaration(game.GraphicsDevice, typeof(SkinnedTangentVertex));
 }