summaryrefslogtreecommitdiff
path: root/src/rend2/glsl/lightall_fp.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rend2/glsl/lightall_fp.glsl')
-rw-r--r--src/rend2/glsl/lightall_fp.glsl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rend2/glsl/lightall_fp.glsl b/src/rend2/glsl/lightall_fp.glsl
index 186ea4b0..ec9bb2dc 100644
--- a/src/rend2/glsl/lightall_fp.glsl
+++ b/src/rend2/glsl/lightall_fp.glsl
@@ -46,7 +46,9 @@ varying vec4 var_Color;
varying vec3 var_Position;
#endif
+#if defined(USE_TCGEN) || defined(USE_NORMALMAP) || (defined(USE_LIGHT) && !defined(USE_FAST_LIGHT))
varying vec3 var_SampleToView;
+#endif
#if !defined(USE_FAST_LIGHT)
varying vec3 var_Normal;