Version: 2019.4
Experimental: this API is experimental and might be changed or removed in the future.

PaintContext.CreateRenderTargets

マニュアルに切り替える
public void CreateRenderTargets (RenderTextureFormat colorFormat);

パラメーター

colorFormatRender 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.

See Also: PaintContext.destinationRenderTexture, PaintContext.sourceRenderTexture