Skip to content
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

Add an overview page under Additional Information that ties together all info about depth #79

Open
YYBartT opened this issue Jan 3, 2024 · 0 comments
Assignees

Comments

@YYBartT
Copy link
Collaborator

YYBartT commented Jan 3, 2024

Information about depth is currently spread across several pages that relate to depth, but there is no page that ties together all this information.

The page should explain how visual elements get their depth and how that depth can be changed in-game or afterwards:

  • By default, instances and other graphical elements get their depth from the layer they're placed on in the Room Editor.
  • Instances created in-game using instance_create_layer() or instance_create_depth() receive their depth value from the layer or depth they're defined at, respectively. The same for particle systems, effects, etc. Instances can have their depth variable overridden.
  • You can still override draw depth in a draw event with the function gpu_set_depth().

The distinction between depth and draw order can also be explained on the page.

Finally, a more advanced section can explain that depth is stored in the position's z coordinate of the vertex buffer and that it is affected by some other functions: the functions used for zwriting and ztesting, among others.

The following manual pages all relate to depth and should be linked (including their "get" counterparts):

General

Other

Depth & Stencil Buffer

@YYBartT YYBartT self-assigned this Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant