Skip to content

Fixes related to planar reflection probes. #931

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jun 21, 2020

Conversation

anisunity
Copy link
Contributor

@anisunity anisunity commented Jun 16, 2020

  • Making the planar probe atlas's format match the color buffer's format.
  • Removing the planarReflectionCacheCompressed setting from asset.

image

PlanarReflFormat

Tested while changing the color buffer format on the HDRP asset
Did not run the test on yamato, will probably require a screenshot update due to minor compression issues

@@ -635,7 +635,7 @@ internal static void ImportAssetAt(HDProbe probe, string file)
importer.sRGBTexture = false;
importer.filterMode = FilterMode.Bilinear;
importer.mipmapEnabled = false;
importer.textureCompression = hd.currentPlatformRenderPipelineSettings.lightLoopSettings.planarReflectionCacheCompressed
importer.textureCompression = false

Choose a reason for hiding this comment

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

Could just set to uncompressed right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

woops didn't see the part of the lines after, my bad

@anisunity anisunity force-pushed the HDRP/PlanarProbeFormat branch from ac5de55 to 003c174 Compare June 17, 2020 10:25
Copy link
Contributor

@sebastienlagarde sebastienlagarde left a comment

Choose a reason for hiding this comment

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

See new commit. I have clean the code as and make the first copy mip work correctly.
without the need of requiring the compute shader.

@sebastienlagarde
Copy link
Contributor

Please @JordanL8 keep reviewing the documentation, thanks :)

@sebastienlagarde sebastienlagarde merged commit 1d4eda5 into HDRP/staging Jun 21, 2020
@sebastienlagarde sebastienlagarde deleted the HDRP/PlanarProbeFormat branch June 21, 2020 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants