mirror of
https://github.com/vonhyou/ray-tracer-comp371.git
synced 2025-06-08 07:22:01 +00:00
add light header
This commit is contained in:
parent
39c584eff9
commit
a73f25c027
1 changed files with 16 additions and 0 deletions
16
src/Light.h
Normal file
16
src/Light.h
Normal 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_
|
Loading…
Add table
Add a link
Reference in a new issue