|
|
|
|
|
|
return mesh; |
|
|
|
} |
|
|
|
|
|
|
|
public static void ResizeHTile(RenderTexture hTile, ref RenderTargetIdentifier hTileRT, RenderTextureDescriptor desc) |
|
|
|
public static void ResizeHTile(ref RenderTexture hTile, ref RenderTargetIdentifier hTileRT, RenderTextureDescriptor desc) |
|
|
|
hTile = CreateRenderTexture(desc, 0, RenderTextureFormat.R8, RenderTextureReadWrite.Linear); // DXGI_FORMAT_R8_UINT is not supported by Unity
|
|
|
|
hTile = CreateRenderTexture(desc, 0, RenderTextureFormat.R8, RenderTextureReadWrite.Linear); // DXGI_FORMAT_R8_UINT is not supported by Unity
|
|
|
|
hTileRT = new RenderTargetIdentifier(hTile); |
|
|
|
hTileRT = new RenderTargetIdentifier(hTile); |
|
|
|
} |
|
|
|
} |
|
|
|
} |