瀏覽代碼

Update rlights.h

Ray 3 年之前
父節點
當前提交
d7a0b46006
共有 1 個文件被更改,包括 2 次插入0 次删除
  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