public void GetRenderOperation( RenderOperation op, int lodIndex )
{
// meshes always use indices
op.useIndices = true;
// use lod face list if requested, else pass the normal face list
if ( lodIndex > 0 && ( lodIndex - 1 ) < lodFaceList.Count )
{
// Use the set of indices defined for this LOD level
op.indexData = lodFaceList[ lodIndex - 1 ];
}
else
op.indexData = indexData;
// set the operation type
op.operationType = operationType;
// set the vertex data correctly
op.vertexData = useSharedVertices ? parent.SharedVertexData : vertexData;
}