Browse Source

Merge pull request #9690 from Calinou/advanced-postprocessing-unshaded-render-mode

Recommend `unshaded` render mode for quad in Advanced post-processing
Max Hilbrunner 1 year ago
parent
commit
25e2ae64aa
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tutorials/shaders/advanced_postprocessing.rst

+ 2 - 0
tutorials/shaders/advanced_postprocessing.rst

@@ -46,6 +46,8 @@ and sets the vertex position in clip space directly.
 .. code-block:: glsl
 .. code-block:: glsl
 
 
   shader_type spatial;
   shader_type spatial;
+  // Prevent the quad from being affected by lighting and fog. This also improves performance.
+  render_mode unshaded, disable_fog;
 
 
   void vertex() {
   void vertex() {
     POSITION = vec4(VERTEX.xy, 1.0, 1.0);
     POSITION = vec4(VERTEX.xy, 1.0, 1.0);