public override VertexBuffer GetVertexAttributeBuffer(string bufferName, string varNameInShader)
{
if (bufferName == strPosition)
{
if (this.propertyBuffer == null)
{
this.propertyBuffer = this.GetPositionBuffer(varNameInShader);
}
return this.propertyBuffer;
}
else if (bufferName == strColor)
{
if (this.colorBuffer == null)
{
this.colorBuffer = this.GetColorBuffer(varNameInShader);
}
return this.colorBuffer;
}
else
{
throw new NotImplementedException();
}
}