Ver Fonte

Update rlights.h

Ray há 3 anos atrás
pai
commit
d7a0b46006
1 ficheiros alterados com 2 adições e 0 exclusões
  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