CreateRenderTargets(RenderTextureFormat)
Creates the sourceRenderTexture and destinationRenderTexture.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.TerrainTools
- Assembly: UnityEngine.TerrainModule
public void CreateRenderTargets(RenderTextureFormat colorFormat)
Parameters
Render Texture format.
Remarks
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