Version: 2023.2
언어: 한국어

PaintContext.CreateRenderTargets

매뉴얼로 전환
public void CreateRenderTargets (RenderTextureFormat colorFormat);

파라미터

colorFormat Render Texture format.

설명

Creates the sourceRenderTexture and destinationRenderTexture.

The render textures are created at a resolution matching the current PaintContext.pixelRect, using the specified RenderTextureFormat.

This function is called internally by TerrainPaintUtility.BeginPaintHeightmap, TerrainPaintUtility.BeginPaintTexture and TerrainPaintUtility.CollectNormals.

Additional resources: PaintContext.destinationRenderTexture, PaintContext.sourceRenderTexture