Skip to content

Commit

Permalink
Fix typo: "itrequired_limits" => "it limits"
Browse files Browse the repository at this point in the history
  • Loading branch information
ageron authored Jun 14, 2024
1 parent a8aad5f commit 10a687c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/intermediate/tutorial13-hdr/readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# High Dynamic Range Rendering

Up to this point, we've been using the sRGB colorspace to render our scene. While this is fine, itrequired_limits what we can do with our lighting. We are using `TextureFormat::Bgra8UnormSrgb` (on most systems) for our surface texture. This means we have 8 bits for each red, green, blue and alpha channel. While the channels are stored as integers between 0 and 255 inclusively, they get converted to and from floating point values between 0.0 and 1.0. The TL:DR of this is that using 8-bit textures, we only get 256 possible values in each channel.
Up to this point, we've been using the sRGB colorspace to render our scene. While this is fine, it limits what we can do with our lighting. We are using `TextureFormat::Bgra8UnormSrgb` (on most systems) for our surface texture. This means we have 8 bits for each red, green, blue and alpha channel. While the channels are stored as integers between 0 and 255 inclusively, they get converted to and from floating point values between 0.0 and 1.0. The TL:DR of this is that using 8-bit textures, we only get 256 possible values in each channel.

The kicker with this is most of the precision gets used to represent darker values of the scene. This means that bright objects like light bulbs have the same value as exceedingly bright objects like the sun. This inaccuracy makes realistic lighting difficult to do right. Because of this, we are going to switch our rendering system to use high dynamic range in order to give our scene more flexibility and enable us to leverage more advanced techniques such as Physically Based Rendering.

Expand Down Expand Up @@ -1264,4 +1264,4 @@ If your browser doesn't support WebGPU, this example won't work for you.

<WasmExample example="tutorial13_hdr"></WasmExample>

<AutoGithubLink/>
<AutoGithubLink/>

0 comments on commit 10a687c

Please sign in to comment.