From 0578391bf59fcf4b0e589eb398b6c13c3be71fe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20J=2E=20Est=C3=A9banez?= Date: Sat, 27 Aug 2016 12:47:28 +0200 Subject: [PATCH] Update shading_language.rst Fix CanvasItem lighting shader table to make it visible again Add missing variables to it --- reference/shading_language.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reference/shading_language.rst b/reference/shading_language.rst index 18400b82..dcce612e 100644 --- a/reference/shading_language.rst +++ b/reference/shading_language.rst @@ -447,7 +447,11 @@ CanvasItem (2D) - LightShader +-------------------------------------+-------------------------------------------------------------------------------+ | const color *LIGHT\_COLOR* | Color of Light | +-------------------------------------+-------------------------------------------------------------------------------+ -| out vec4 *LIGHT* | Light Output (shader is ignored if this is not used) | +| vec2 *LIGHT\_UV* | UV for light image | ++-------------------------------------+-------------------------------------------------------------------------------+ +| color *SHADOW* | Light shadow color override | ++-------------------------------------+-------------------------------------------------------------------------------+ +| out vec4 *LIGHT* | Light Output (shader is ignored if this is not used) | +-------------------------------------+-------------------------------------------------------------------------------+ Examples