Skip to content

Commit 6f0e3bc

Browse files
committed
Fix usage of source_color with hint_depth_texture
1 parent 19f5643 commit 6f0e3bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tutorials/shaders/advanced_postprocessing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ by using ``hint_depth_texture``.
8181

8282
.. code-block:: glsl
8383
84-
uniform sampler2D depth_texture : source_color, hint_depth_texture;
84+
uniform sampler2D depth_texture : hint_depth_texture;
8585
8686
Once defined, the depth texture can be read with the ``texture()`` function.
8787

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

0 commit comments

Comments
 (0)