Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit 80a6939

Browse files
committed
Fixed dof forcing hdr and not using the input source format
1 parent 5e07647 commit 80a6939

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PostProcessing/Runtime/Effects/DepthOfField.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ RenderTexture CheckHistory(int eye, int id, PostProcessRenderContext context, Re
161161

162162
public override void Render(PostProcessRenderContext context)
163163
{
164-
var colorFormat = RenderTextureFormat.DefaultHDR;
164+
var colorFormat = context.sourceFormat;
165165
var cocFormat = SelectFormat(RenderTextureFormat.R8, RenderTextureFormat.RHalf);
166166

167167
// Avoid using R8 on OSX with Metal. #896121, https://goo.gl/MgKqu6

0 commit comments

Comments
 (0)