Skip to content

Fix NDC coordinates for Vulkan in Advanced post-processing#5277

Merged
mhilbrunner merged 1 commit into
godotengine:masterfrom
Calinou:advanced-postprocessing-fix-ndc
Nov 3, 2021
Merged

Fix NDC coordinates for Vulkan in Advanced post-processing#5277
mhilbrunner merged 1 commit into
godotengine:masterfrom
Calinou:advanced-postprocessing-fix-ndc

Conversation

@Calinou

@Calinou Calinou commented Sep 22, 2021

Copy link
Copy Markdown
Member

This closes #5276.

Note: Don't cherry-pick to 3.x branches.

@Calinou Calinou added the bug label Sep 22, 2021

@clayjohn clayjohn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Line 100 needs to change as well.

@Calinou Calinou force-pushed the advanced-postprocessing-fix-ndc branch 3 times, most recently from 243dcd9 to 8e64048 Compare September 22, 2021 14:36
@Calinou

Calinou commented Sep 22, 2021

Copy link
Copy Markdown
Member Author

Line 100 needs to change as well.

Fixed. I also made values explicitly floating-point, just in case.

Comment thread tutorials/shaders/advanced_postprocessing.rst Outdated
Comment thread tutorials/shaders/advanced_postprocessing.rst Outdated
@Calinou

Calinou commented Sep 22, 2021

Copy link
Copy Markdown
Member Author

@Calinou Calinou force-pushed the advanced-postprocessing-fix-ndc branch from 8e64048 to 4ba5a42 Compare September 22, 2021 16:08
@clayjohn

Copy link
Copy Markdown
Member

I don't think so. I think we still use a clip space of -1 to 1 in all three dimensions

@mhilbrunner mhilbrunner merged commit d57da37 into godotengine:master Nov 3, 2021
@mhilbrunner

Copy link
Copy Markdown
Member

Thank you! And thanks to clayjohn for reviewing :)

@Calinou Calinou deleted the advanced-postprocessing-fix-ndc branch November 3, 2021 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Advanced post processing tutorial - Incorrect depth texture linearization for Vulkan

3 participants