Skip to content

Commit

Permalink
Merge pull request #10406 from tetrapod00/fix-source-color
Browse files Browse the repository at this point in the history
Fix usage of `source_color` with `hint_depth_texture`
  • Loading branch information
mhilbrunner authored Dec 16, 2024
2 parents 273f9a7 + 6f0e3bc commit 8b36717
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tutorials/shaders/advanced_postprocessing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ by using ``hint_depth_texture``.

.. code-block:: glsl
uniform sampler2D depth_texture : source_color, hint_depth_texture;
uniform sampler2D depth_texture : hint_depth_texture;
Once defined, the depth texture can be read with the ``texture()`` function.

Expand Down Expand Up @@ -178,7 +178,7 @@ line is commented out.
// Prevent the quad from being affected by lighting and fog. This also improves performance.
render_mode unshaded, fog_disabled;
uniform sampler2D depth_texture : source_color, hint_depth_texture;
uniform sampler2D depth_texture : hint_depth_texture;
void vertex() {
POSITION = vec4(VERTEX.xy, 1.0, 1.0);
Expand Down

0 comments on commit 8b36717

Please sign in to comment.