citro3d/include/c3d/lightlut.h

16 lines
402 B
C
Raw Normal View History

2015-09-15 23:02:35 +02:00
#pragma once
#include "types.h"
#include <math.h>
typedef struct
{
u32 data[256];
} C3D_LightLut;
typedef float (* C3D_LightLutFunc)(float x, float param);
void LightLut_FromArray(C3D_LightLut* lut, float* data);
void LightLut_FromFunc(C3D_LightLut* lut, C3D_LightLutFunc func, float param, bool negative);
#define LightLut_Phong(lut, shininess) LightLut_FromFunc((lut), powf, (shininess), false)