light.h
 1  /* ************************************************************************** */
 2  /*                                                                            */
 3  /*                                                        :::      ::::::::   */
 4  /*   light.h                                            :+:      :+:    :+:   */
 5  /*                                                    +:+ +:+         +:+     */
 6  /*   By: gychoi <gychoi@student.42seoul.kr>         +#+  +:+       +#+        */
 7  /*                                                +#+#+#+#+#+   +#+           */
 8  /*   Created: 2023/05/28 20:07:07 by gychoi            #+#    #+#             */
 9  /*   Updated: 2023/05/28 20:57:13 by gychoi           ###   ########.fr       */
10  /*                                                                            */
11  /* ************************************************************************** */
12  
13  #ifndef LIGHT_H
14  # define LIGHT_H
15  
16  # include "libvec.h"
17  # include "scene.h"
18  
19  # define LIGHT_POINT 1
20  
21  typedef struct s_light
22  {
23  	t_point3	origin;
24  	t_color3	light_color;
25  	double		bright_ratio;
26  }	t_light;
27  
28  t_color3	phong_lighting(t_scene *scene);
29  t_light		*light_point(t_point3 light_origin, t_color3 light_color, double bright_ratio);
30  
31  #endif