-
Notifications
You must be signed in to change notification settings - Fork 10
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
mod: Beginner Guide: rewrote the gamma correction section #349
base: main
Are you sure you want to change the base?
Conversation
- `gbuffers_water` - all translucent terrain | ||
- `gbuffers_textured` - particles | ||
- `gbuffers_entities` - entities | ||
A "shader" is, by definition, any program that is executed on the GPU. For Minecraft, these shader programs (also know as passes) can be sorted into two distinct categories: composite passes, which execute for the entire screen, and gbuffers passes, which execute only for specific geometry. Each individual program is composed of several shader stages, two of which are required: a vertex shader, which executes once for each vertex of the geometry, and a fragment shader, which executes once for every pixel that covers the geometry. You can optionally include a compute, geometry, and/or tesselation stage for each pass. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't call them composite passes, rather fullscreen passes, and probably put both that and gbuffers in quotes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My language here was taken directly from the Iris Docs. Notably, there, they're called "composite-style" and "gbuffers-style" passes. I agree with both of your points, though.
@@ -1,16 +1,16 @@ | |||
--- | |||
title: Simple Post Effects | |||
title: Your First Effect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
title: Your First Effect | |
title: Your First Post Processing Effect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/content/docs/current/Guides/Your First Shader/1_composite.mdx
Outdated
Show resolved
Hide resolved
src/content/docs/current/Guides/Your First Shader/1_composite.mdx
Outdated
Show resolved
Hide resolved
src/content/docs/current/Guides/Your First Shader/1_composite.mdx
Outdated
Show resolved
Hide resolved
src/content/docs/current/Guides/Your First Shader/1_composite.mdx
Outdated
Show resolved
Hide resolved
src/content/docs/current/Guides/Your First Shader/1_composite.mdx
Outdated
Show resolved
Hide resolved
Co-authored-by: Josh Britain <50422789+jbritain@users.noreply.github.com>
Co-authored-by: Josh Britain <50422789+jbritain@users.noreply.github.com>
Co-authored-by: Josh Britain <50422789+jbritain@users.noreply.github.com>
Co-authored-by: Josh Britain <50422789+jbritain@users.noreply.github.com>
Co-authored-by: Josh Britain <50422789+jbritain@users.noreply.github.com>
Co-authored-by: Josh Britain <50422789+jbritain@users.noreply.github.com>
``` | ||
::: | ||
|
||
By default, `colortex` buffers are RGBA8, meaning they store 8-bit integers which can encode a maximum of 256 color values. By increasing the precision to 16-bit, our buffer can now encode 65535 color values! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can encode 256 per channel, that's still 16777216 actual colours - I would specify that it's per channel
Updated the Gamma Correction section to be more in-depth and give a better explanation of color spaces.