public SSInstancedMeshRenderer(SSParticleSystem ps,
                                ISSInstancable mesh  = null,
                                BufferUsageHint hint = BufferUsageHint.StreamDraw)
     : this(ps, hint)
 {
     this.mesh = mesh;
 }
        public SSInstancedMeshRenderer(SSParticleSystem ps,
                                       BufferUsageHint hint = BufferUsageHint.StreamDraw)
        {
            particleSystem          = ps;
            _posBuffer              = new SSAttributeBuffer <SSAttributeVec3> (hint);
            _orientationXYBuffer    = new SSAttributeBuffer <SSAttributeVec2> (hint);
            _orientationZBuffer     = new SSAttributeBuffer <SSAttributeFloat> (hint);
            _masterScaleBuffer      = new SSAttributeBuffer <SSAttributeFloat> (hint);
            _componentScaleXYBuffer = new SSAttributeBuffer <SSAttributeVec2> (hint);
            _componentScaleZBuffer  = new SSAttributeBuffer <SSAttributeFloat> (hint);
            _colorBuffer            = new SSAttributeBuffer <SSAttributeColor> (hint);

            //m_spriteIndexBuffer = new SSAttributeBuffer<SSAttributeByte> (hint);
            _spriteOffsetUBuffer = new SSAttributeBuffer <SSAttributeFloat> (hint);
            _spriteOffsetVBuffer = new SSAttributeBuffer <SSAttributeFloat> (hint);
            _spriteSizeUBuffer   = new SSAttributeBuffer <SSAttributeFloat> (hint);
            _spriteSizeVBuffer   = new SSAttributeBuffer <SSAttributeFloat> (hint);
        }