From f4266776cb9c3a8b256619e9cd17e111f8d510cd Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Mon, 27 Apr 2015 07:56:18 -0300 Subject: [PATCH] Updated shader (markdown) --- shader.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shader.md b/shader.md index e99bd26..f455819 100644 --- a/shader.md +++ b/shader.md @@ -243,9 +243,11 @@ Depending on the shader type, several built-in variables are available, listed a | ------ | ------- | | const vec4 **SRC_COLOR** | Vertex color | | const vec4 **POSITION** | Screen Position | -| vec3 **NORMAL** | Optional Normal (used for 2D Lighting) | | vec2 **UV** | UV | | out color **COLOR** | Output Color | +| out vec3 **NORMAL** | Optional Normal (used for 2D Lighting) | +| out vec3 **NORMALMAP** | Optional Normal in standard normalmap format (flipped y and Z from 0 to 1) | +| out float **NORMALMAP_DEPTH** | Depth option for above normalmap output, default value is 1.0 | | const texture **TEXTURE** | Current texture in use for CanvasItem | | const vec2 **TEXTURE_PIXEL_SIZE** | Pixel size for current 2D texture | | in vec4 **VAR1** | Varying 1 Output |