Skip to content

Commit

Permalink
Recommend unshaded render mode for quad in Advanced post-processing
Browse files Browse the repository at this point in the history
This prevents the quad from being affected by lighting, while also
improving performance.
  • Loading branch information
Calinou committed Aug 1, 2024
1 parent c3f0ec7 commit fdf310d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tutorials/shaders/advanced_postprocessing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ and sets the vertex position in clip space directly.
.. code-block:: glsl
shader_type spatial;
// Prevent the quad from being affected by lighting and fog. This also improves performance.
render_mode unshaded, disable_fog;
void vertex() {
POSITION = vec4(VERTEX.xy, 1.0, 1.0);
Expand Down

0 comments on commit fdf310d

Please sign in to comment.