summaryrefslogtreecommitdiff
path: root/src/light/light.c
blob: 839d74762e177e1b9c4860166c733b1acf491779 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "light.h"

void honey_point_light_new(honey_point_light* light,
                           float x, float y, float z,
                           float r, float g, float b,
                           float constant,
                           float linear,
                           float quadratic) {
  light->position[0] = x;
  light->position[1] = y;
  light->position[2] = z;
  
  light->color[0] = r;
  light->color[1] = g;
  light->color[2] = b;

  light->constant = constant;
  light->linear = linear;
  light->quadratic = quadratic;
}