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

Conversation

huangdonghai
Copy link

Under d3d9, shader model 3, linear rendering, DoF has a bug to read R8 coc render target, maybe write as linear, read as SRGB. this commit force RenderTextureReadWrite.Linear param when create R8 render target to solve this.

@Chman Chman requested review from Chman and Kink3d June 21, 2017 08:45
@@ -105,7 +105,8 @@ public void Prepare(RenderTexture source, Material uberMaterial, bool antialiasC
material.SetFloat(Uniforms._RcpAspect, 1f / aspect);

// CoC calculation pass
var rtCoC = context.renderTextureFactory.Get(context.width, context.height, 0, cocFormat);
// HACK by hdh, add RenderTextureReadWrite.Linear setting. in DX9 shader model 3 Linear rendering, without this will have bug
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove this comment? Your name will still appear in the commit log, no need to put it in a comment :)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. comment has removed.

@huangdonghai huangdonghai force-pushed the v1 branch 2 times, most recently from d0d6146 to 402bd20 Compare June 22, 2017 04:04
@Chman
Copy link
Contributor

Chman commented Jun 22, 2017

Waiting for QA to run a test pass before we merge. Thanks :)

@Chman Chman merged commit aa6aee4 into Unity-Technologies:v1 Jun 23, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants