소스 검색

Fix compile error in advanced_postprocessing.rst

tetrapod00 1 년 전
부모
커밋
3d9ca63b15
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 directly.
 .. code-block:: glsl
 
   shader_type spatial;
+  // Prevent the quad from being affected by lighting and fog. This also improves performance.
+  render_mode unshaded, fog_disabled;
 
   void vertex() {
     POSITION = vec4(VERTEX, 1.0);