소스 검색

Recommend `unshaded` render mode for quad in Advanced post-processing

This prevents the quad from being affected by lighting, while also
improving performance.
Hugo Locurcio 1 년 전
부모
커밋
fdf310da93
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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
 
   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);