Selaa lähdekoodia

Update rlights.h

Ray 3 vuotta sitten
vanhempi
commit
d7a0b46006
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      examples/shaders/rlights.h

+ 2 - 0
examples/shaders/rlights.h

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