My test code is as follows:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Rendering;
public class CommandBufferTest2 : MonoBehaviour
{
private CommandBuffer commandBuffer;
public Mesh sphereMesh;
public Material standardMaterial;
void Start()
{
commandBuffer = new CommandBuffer();
Camera.main.AddCommandBuffer(CameraEvent.AfterForwardOpaque, commandBuffer);
DrawMesh();
}
public void DrawMesh()
{
Matrix4x4 matrix4X4 = Matrix4x4.TRS(Vector3.up*2f, Quaternion.identity, Vector3.one * 2f);
commandBuffer.DrawMesh(sphereMesh, matrix4X4, standardMaterial);
Debug.Log(" DrawMesh Done ");
}
}
and got following results:

It confused me, why there are two meshes? And it not 3D.
