17 lines
239 B
C
17 lines
239 B
C
#pragma once
|
|
|
|
#include "tuples.h"
|
|
|
|
struct light {
|
|
struct tuple position;
|
|
struct tuple intensity;
|
|
};
|
|
|
|
struct light point_light(struct tuple position, struct tuple intensity)
|
|
{
|
|
return (struct light){
|
|
position,
|
|
intensity
|
|
};
|
|
}
|