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

Recommend `unshaded` render mode for quad in Advanced post-processing
This commit is contained in:
Max Hilbrunner
2024-08-01 19:09:20 +02:00
committed by GitHub

View File

@@ -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);