Skip to content

Commit

Permalink
feat: uniforms: added eyeAltitude and upPosition
Browse files Browse the repository at this point in the history
  • Loading branch information
WhyFenceCode committed May 9, 2024
1 parent 646e166 commit 014dd80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
7 changes: 3 additions & 4 deletions src/content/docs/reference/Uniforms/General/eyeAltitude.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ description: eyeAltitude
sidebar:
label: eyeAltitude
order: 1
badge:
text: Unfinished
variant: caution
---

### `uniform float eyeAltitude;`
### `uniform float eyeAltitude;`

This uniform stores the float value of the altitude of the player, stored in blocks. This value matches the one displayed on the `f3` screen. For more information visit the [Minecraft Wiki](https://minecraft.wiki/w/Altitude) article on altitude.
6 changes: 2 additions & 4 deletions src/content/docs/reference/Uniforms/General/upPosition.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ description: upPosition
sidebar:
label: upPosition
order: 1
badge:
text: Unfinished
variant: caution
---

### `uniform vec3 upPosition;`
### `uniform vec3 upPosition;`
This uniform stores the up value in [view space](/how_to/spaces). This value can also be pulled from `gbufferModelView[1].xyz`. The length of this adds up to 100 (`normalizedValue * 100`).

0 comments on commit 014dd80

Please sign in to comment.