RT
Functions
light.c File Reference
#include "render.h"
#include "librt.h"
#include "ftlist.h"
#include "ftmem.h"
#include <math.h>
Include dependency graph for light.c:

Functions

t_color get_light_visibility (t_shading s, t_list *obj_list, t_settings *settings)
 
void set_light_data (t_shading *shading, t_light *light)
 
void shade_1_light (t_color *light_accum, t_shading s, t_list *obj, t_settings *settings)
 
t_color get_lighting (t_shading s, t_scene scene, t_settings *settings)
 

Function Documentation

◆ get_light_visibility()

t_color get_light_visibility ( t_shading  s,
t_list *  obj_list,
t_settings settings 
)

◆ get_lighting()

t_color get_lighting ( t_shading  s,
t_scene  scene,
t_settings settings 
)

◆ set_light_data()

void set_light_data ( t_shading shading,
t_light light 
)

◆ shade_1_light()

void shade_1_light ( t_color light_accum,
t_shading  s,
t_list *  obj,
t_settings settings 
)