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

27 lines
344 B
C

#ifndef LIGHT_H
#include "color.h"
#include "geometry.h"
#include "point.h"
// STRUCTURES
struct Light
{
Point position;
ColorF32 color;
float intensity;
float falloffConstant;
float falloffLinear;
};
// PUBLIC FUNCTIONS
ColorF32 ComputeLight(Vertex &vert, Material &material, Light &light);
#define LIGHT_H
#endif