Browse Source

Update rlights.h

Ray 3 years ago
parent
commit
d7a0b46006
1 changed files with 2 additions and 0 deletions
  1. 2 0
      examples/shaders/rlights.h

+ 2 - 0
examples/shaders/rlights.h

@@ -49,6 +49,7 @@ typedef struct {
     Vector3 position;
     Vector3 position;
     Vector3 target;
     Vector3 target;
     Color color;
     Color color;
+    float attenuation;
     
     
     // Shader locations
     // Shader locations
     int enabledLoc;
     int enabledLoc;
@@ -56,6 +57,7 @@ typedef struct {
     int positionLoc;
     int positionLoc;
     int targetLoc;
     int targetLoc;
     int colorLoc;
     int colorLoc;
+    int attenuationLoc;
 } Light;
 } Light;
 
 
 // Light type
 // Light type