Exemplo n.º 1
0
        private Matrix4 CalculateWorldMatrix(RenderModelMarkerBlock markerBlock)
        {
            if (
                !(( RenderModelBlock )Model.RenderModel.Get(_key)).MarkerGroups.SelectMany(x => x.Markers)
                .Contains(markerBlock))
            {
                throw new ArgumentOutOfRangeException( );
            }

            return(markerBlock.WorldMatrix * Nodes.GetWorldMatrix(markerBlock.NodeIndex));
        }
Exemplo n.º 2
0
 public MarkerWrapper(RenderModelMarkerBlock marker, NodeCollection nodes)
 {
     this.marker = marker;
     this.nodes  = nodes;
 }