Skip to content

Conversation

@cridenour
Copy link
Contributor

While doing some custom SDF work in a fog shader, I noticed the documentation for OBJECT_POSITION did not match engine behavior.

You can see an example in the engine's fog shader where they need both WORLD_POSITION and OBJECT_POSITION to get a position in local space here: https://github.com/godotengine/godot/blob/3710f069293f2fde8afe33fea898c4b36fa5e943/scene/resources/fog_material.cpp#L160

@Piralein Piralein added enhancement area:manual Issues and PRs related to the Manual/Tutorials section of the documentation cherrypick:4.0 cherrypick:4.1 labels Jun 27, 2023
@mhilbrunner mhilbrunner merged commit 1442ace into godotengine:master Jul 18, 2023
@mhilbrunner
Copy link
Member

Thanks for taking the time to contribute and fix this for all Godot users! 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 enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants