如果只是渲染深度, 那像素格式為?PF_R16F,壓縮設(shè)置改為?TC_HalfFloat ,紋理的空間占用顯著降低。
這里用的是?UTextureRenderTargetCube ,UTextureRenderTarget2D 同理。
場景捕獲立方體組件的創(chuàng)建代碼: