RT
Functions
light_utils.c File Reference
#include "render.h"
#include "librt.h"
Include dependency graph for light_utils.c:

Functions

float get_distance_attenuation (float distance)
 
void add_specular_light (t_color *specular, t_shading shading, bool no_specular)
 
void add_diffuse_light (t_color *diffuse, t_shading shading, bool no_diffuse)
 

Function Documentation

◆ add_diffuse_light()

void add_diffuse_light ( t_color diffuse,
t_shading  shading,
bool  no_diffuse 
)

◆ add_specular_light()

void add_specular_light ( t_color specular,
t_shading  shading,
bool  no_specular 
)

◆ get_distance_attenuation()

float get_distance_attenuation ( float  distance)