add light header

This commit is contained in:
Shuo Feng 2024-02-11 16:22:51 -05:00
parent 39c584eff9
commit a73f25c027
Signed by: sfeng
GPG key ID: 1E83AE6CD1C037B1

16
src/Light.h Normal file
View file

@ -0,0 +1,16 @@
#ifndef LIGHT_H_
#define LIGHT_H_
enum LIGHT_TYPE { POINT, AREA };
class Light {
public:
Light(LIGHT_TYPE, float *, float *);
private:
LIGHT_TYPE type;
float diffuse[3]; // field `id`
float specular[3]; // field `is`
};
#endif // !LIGHT_H_