Skip to content

Commit

Permalink
Fix usage of source_color with hint_depth_texture
Browse files Browse the repository at this point in the history
  • Loading branch information
tetrapod00 committed Dec 14, 2024
1 parent 19f5643 commit 6f0e3bc
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 6f0e3bc

Please sign in to comment.