1
0
Fork 0
2018-soft-3d-renderer/include/light.h

28 lines
399 B
C
Raw Normal View History

#ifndef LIGHT_H
2018-09-20 02:15:53 +00:00
#include "camera.h"
#include "color.h"
2018-09-19 03:02:12 +00:00
#include "geometry.h"
#include "point.h"
// STRUCTURES
2018-09-19 03:02:12 +00:00
struct Light
{
2018-09-19 03:02:12 +00:00
Point position;
ColorF32 color;
float intensity;
2018-09-19 03:02:12 +00:00
float falloffConstant;
float falloffLinear;
};
2018-09-19 03:02:12 +00:00
// PUBLIC FUNCTIONS
2018-09-21 03:06:27 +00:00
ColorF32 ComputeLight(Point &position, Vector &normal, Material &material, Light &light, Camera &camera);
#define LIGHT_H
#endif