Skip to content

Commit

Permalink
Maybe fixed: Texture becomes upside down when Shader Keyword _SYNTHES…
Browse files Browse the repository at this point in the history
…IZED_TEXTURE is enabled.
  • Loading branch information
H3idi-X committed Mar 29, 2021
1 parent 39ab812 commit 9c676e6
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ internal static void Proc(ref Texture outTexture)
material.SetTexture(strS2, Source2);
material.SetTexture(strS3, Source3);
}
#if true
#if false
// int tempTextureIdentifier = Shader.PropertyToID("TmpTexture");
s_CommandBuffer.Clear();

Expand All @@ -213,9 +213,10 @@ internal static void Proc(ref Texture outTexture)
// s_CommandBuffer.ReleaseTemporaryRT(tempTextureIdentifier);
Graphics.ExecuteCommandBuffer(s_CommandBuffer);
#else
Graphics.Blit(Source0, s_DebugRenderTexture);
Graphics.Blit(Source0, s_DebugRenderTexture, material);
Graphics.CopyTexture(s_DebugRenderTexture, outTexture);
#endif
SyncGPU();
// SyncGPU();
}

internal static void SyncGPU()
Expand Down

0 comments on commit 9c676e6

Please sign in to comment.