Skip to content

Conversation

@Ayush41
Copy link
Contributor

@Ayush41 Ayush41 commented Jan 3, 2026

This PR corrects the documentation for the Section Fragments -> built-in FRAGCOORD variable in spatial shaders, mentioned in issue #11572

In Godot 4.x, screen-space coordinates use an upper-left origin (Y increases downward).
The previous description incorrectly stated a lower-left origin, which could confuse users
working with screen-space shaders.

This change updates the description only, without altering formatting or structure.

Fixes Issue #11572

@Calinou Calinou added bug topic:shaders area:manual Issues and PRs related to the Manual/Tutorials section of the documentation topic:3d labels Jan 8, 2026
Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Note that while this is part of the spatial shader documentation, this refers to 2D coordinate space which works the same in Godot as it does in e.g. OpenGL.

@Ayush41
Copy link
Contributor Author

Ayush41 commented Jan 8, 2026

Thanks for the clarification, glad the change looks good :)

@mhilbrunner mhilbrunner merged commit 24496b9 into godotengine:master Jan 10, 2026
1 check passed
@mhilbrunner
Copy link
Member

Thank you! Merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:manual Issues and PRs related to the Manual/Tutorials section of the documentation bug cherrypick:4.5 topic:shaders topic:3d

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants