From 509095d65f1ffac5b1ac0d0ddc5414dbb34c9b1f Mon Sep 17 00:00:00 2001 From: Ricardo Buring Date: Fri, 5 Apr 2024 18:20:49 +0200 Subject: [PATCH] Clarify per-instance uniforms are not supported in the Compatibility renderer (cherry picked from commit 60e05c8ef4b11fd3a339f41041dd1b819f0283d7) --- tutorials/shaders/shader_reference/shading_language.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tutorials/shaders/shader_reference/shading_language.rst b/tutorials/shaders/shader_reference/shading_language.rst index e63bfccef..3982f6149 100644 --- a/tutorials/shaders/shader_reference/shading_language.rst +++ b/tutorials/shaders/shader_reference/shading_language.rst @@ -1018,6 +1018,10 @@ Per-instance uniforms Per-instance uniforms are only available in ``spatial`` (3D) shaders. +.. note:: + + Per-instance uniforms are not supported when using the Compatibility renderer. + Sometimes, you want to modify a parameter on each node using the material. As an example, in a forest full of trees, when you want each tree to have a slightly different color that is editable by hand. Without per-instance uniforms, this