Exemple #1
0
        /// <summary>Gets the first rendered block of this property. Used during Paint passes.</summary>
        public MeshBlock GetFirstBlock(Renderman renderer)
        {
            if (Batch == null)
            {
                // Layout required.
                return(null);
            }

            // Use the shared block:
            MeshBlock block = renderer.Block;

            // Load into it now:
            block.SetBatchIndex(Batch, FirstBlockIndex);

            // Return it:
            return(block);
        }