From 014dd800b92e1502c79228834b733342c2bd5d11 Mon Sep 17 00:00:00 2001 From: WhyFenceCode <120431739+WhyFenceCode@users.noreply.github.com> Date: Thu, 9 May 2024 13:29:50 -0700 Subject: [PATCH] feat: uniforms: added eyeAltitude and upPosition --- .../docs/reference/Uniforms/General/eyeAltitude.mdx | 7 +++---- src/content/docs/reference/Uniforms/General/upPosition.mdx | 6 ++---- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/content/docs/reference/Uniforms/General/eyeAltitude.mdx b/src/content/docs/reference/Uniforms/General/eyeAltitude.mdx index 3331767..be865da 100644 --- a/src/content/docs/reference/Uniforms/General/eyeAltitude.mdx +++ b/src/content/docs/reference/Uniforms/General/eyeAltitude.mdx @@ -4,9 +4,8 @@ description: eyeAltitude sidebar: label: eyeAltitude order: 1 - badge: - text: Unfinished - variant: caution --- -### `uniform float eyeAltitude;` \ No newline at end of file +### `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. \ No newline at end of file diff --git a/src/content/docs/reference/Uniforms/General/upPosition.mdx b/src/content/docs/reference/Uniforms/General/upPosition.mdx index feb9df7..b708317 100644 --- a/src/content/docs/reference/Uniforms/General/upPosition.mdx +++ b/src/content/docs/reference/Uniforms/General/upPosition.mdx @@ -4,9 +4,7 @@ description: upPosition sidebar: label: upPosition order: 1 - badge: - text: Unfinished - variant: caution --- -### `uniform vec3 upPosition;` \ No newline at end of file +### `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`). \ No newline at end of file