diff options
author | Julian T <julian@jtle.dk> | 2020-03-09 15:44:21 +0100 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2020-03-09 15:44:21 +0100 |
commit | 0262431a3c78738a0bf44d6f4e54b0942651f59e (patch) | |
tree | 1e785d556ea6beef2633dcc554f628a975a72ec9 /scene.c | |
parent | 0b61f67456ec43f8553b199c4f524436ef467259 (diff) |
Added redundant lambert stufflambert
Diffstat (limited to 'scene.c')
-rw-r--r-- | scene.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -60,6 +60,13 @@ light_t *add_light(space_t *s, vector_t *pos, color_t *defuse, color_t *specular return o; } +void material_set_phong(material_t *m, COORD_T defuse, COORD_T specular, unsigned int shine) { + m->light_type = LIGHT_PHONG; + m->phong.defuse = defuse; + m->phong.specular = specular; + m->phong.shine = shine; +} + void obj_norm_at(object_t *o, vector_t *dest, vector_t *point) { switch(o->type) { |