From e6c2653fe6a9e1d2dab5938de9cebbd1ccf459e7 Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Fri, 22 Jul 2011 09:00:59 +0000 Subject: [PATCH] Fixed varrying binding in the lighting shader git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7898 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core-data/Common/MatDefs/Light/Lighting.frag | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/engine/src/core-data/Common/MatDefs/Light/Lighting.frag b/engine/src/core-data/Common/MatDefs/Light/Lighting.frag index 829f762c9..0a6b20a23 100644 --- a/engine/src/core-data/Common/MatDefs/Light/Lighting.frag +++ b/engine/src/core-data/Common/MatDefs/Light/Lighting.frag @@ -47,14 +47,16 @@ varying vec4 SpecularSum; uniform sampler2D m_ColorRamp; #endif uniform float m_AlphaDiscardThreshold; + +varying vec4 lightVec; +varying vec4 spotVec; + #ifndef VERTEX_LIGHTING uniform float m_Shininess; #ifdef HQ_ATTENUATION uniform vec4 g_LightPosition; #endif -varying vec4 lightVec; -varying vec4 spotVec; #ifdef USE_REFLECTION uniform float m_ReflectionPower;