#endif\r
#ifndef VERTEX_LIGHTING\r
float spotFallOff = 1.0;\r
- if(spotVec.w!=0){\r
+ if(spotVec.w!=0.0){\r
vec3 L=normalize(lightVec.xyz);\r
vec3 spotdir = normalize(spotVec.xyz);\r
float curAngleCos = dot(-L, spotdir); \r
vec4 lightDir;\r
lightComputeDir(wvPos, g_LightColor, wvLightPos, lightDir);\r
float spotFallOff = 1.0;\r
- if(spotVec.w!=0){\r
+ if(spotVec.w!=0.0){\r
vec3 L=normalize(lightVec.xyz);\r
vec3 spotdir = normalize(spotVec.xyz);\r
float curAngleCos = dot(-L, spotdir); \r
#endif\r
\r
float spotFallOff = 1.0;\r
- if(spotVec.w!=0){\r
+ if(spotVec.w!=0.0){\r
vec3 L=normalize(lightVec.xyz);\r
vec3 spotdir = normalize(spotVec.xyz);\r
float curAngleCos = dot(-L, spotdir); \r