소스 검색

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