Explorar o código

Fixed compile error in lighting-point.vert

Darryl Gough %!s(int64=13) %!d(string=hai) anos
pai
achega
75989d3d73
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      gameplay/res/shaders/lib/lighting-point.vert

+ 1 - 4
gameplay/res/shaders/lib/lighting-point.vert

@@ -34,14 +34,11 @@ void applyLight(vec4 position)
     // Compute the light direction.
     vec3 lightDirection = u_pointLightPosition - positionWorldViewSpace.xyz;
    
-    vec4 vertexToPointLightDirection;
-    vertexToPointLightDirection.xyz = lightDirection;
-   
     // Attenuation
     v_pointLightAttenuation = 1.0 - dot(lightDirection * u_pointLightRangeInverse, lightDirection * u_pointLightRangeInverse);
 
     // Output light direction.
-    v_vertexToPointLightDirection =  vertexToPointLightDirection;
+    v_vertexToPointLightDirection =  lightDirection;
    
     #if defined (SPECULAR)