Recommend unshaded render mode for quad in Advanced post-processing

This prevents the quad from being affected by lighting, while also
improving performance.
This commit is contained in:
Hugo Locurcio
2024-08-01 03:36:08 +02:00
parent c3f0ec7f9f
commit fdf310da93

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