renderTexture = new RenderTexture(
width,
height,
24,
RenderTextureFormat.Default,
RenderTextureReadWrite.Default);
CommandBuffer commandBuffer = new CommandBuffer();
int screenCopyID1 = Shader.PropertyToID("_Temp1");
commandBuffer.GetTemporaryRT(
screenCopyID1,
width, height, 0,
FilterMode.Bilinear);
RenderTargetIdentifier renderTargetId = new RenderTargetIdentifier(renderTexture);
commandBuffer.Blit(renderTargetId, screenCopyID1);
てな感じで, コマンドバッファに組み込んでいける.
0 件のコメント:
コメントを投稿