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

27 lines
344 B
C
Raw Normal View History

#ifndef LIGHT_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
ColorF32 ComputeLight(Vertex &vert, Material &material, Light &light);
#define LIGHT_H
#endif