From 0262431a3c78738a0bf44d6f4e54b0942651f59e Mon Sep 17 00:00:00 2001 From: Julian T Date: Mon, 9 Mar 2020 15:44:21 +0100 Subject: Added redundant lambert stuff --- scene.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scene.c') diff --git a/scene.c b/scene.c index 5a41041..fd3881c 100644 --- a/scene.c +++ b/scene.c @@ -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) { -- cgit v1.2.3