#include "types.h"
#include <math.h>
Go to the source code of this file.
|
| #define | LightLut_Phong(lut, shininess) LightLut_FromFunc((lut), powf, (shininess), false) |
| |
| #define | LightLut_Spotlight(lut, angle) LightLut_FromFunc((lut), spot_step, cosf(angle), true) |
| |
| #define | LightLutDA_Quadratic(lut, from, to, linear, quad) LightLutDA_Create((lut), quadratic_dist_attn, (from), (to), (linear), (quad)) |
| |
|
| static float | quadratic_dist_attn (float dist, float linear, float quad) |
| |
| static float | spot_step (float angle, float cutoff) |
| |
| void | LightLut_FromArray (C3D_LightLut *lut, float *data) |
| |
| void | LightLut_FromFunc (C3D_LightLut *lut, C3D_LightLutFunc func, float param, bool negative) |
| |
| void | LightLutDA_Create (C3D_LightLutDA *lut, C3D_LightLutFuncDA func, float from, float to, float arg0, float arg1) |
| |
◆ LightLut_Phong
| #define LightLut_Phong |
( |
|
lut, |
|
|
|
shininess |
|
) |
| LightLut_FromFunc((lut), powf, (shininess), false) |
◆ LightLut_Spotlight
◆ LightLutDA_Quadratic
◆ C3D_LightLutFunc
| typedef float(* C3D_LightLutFunc) (float x, float param) |
◆ C3D_LightLutFuncDA
| typedef float(* C3D_LightLutFuncDA) (float dist, float arg0, float arg1) |
◆ LightLut_FromArray()
| void LightLut_FromArray |
( |
C3D_LightLut * |
lut, |
|
|
float * |
data |
|
) |
| |
◆ LightLut_FromFunc()
◆ LightLutDA_Create()
◆ quadratic_dist_attn()
| static float quadratic_dist_attn |
( |
float |
dist, |
|
|
float |
linear, |
|
|
float |
quad |
|
) |
| |
|
inlinestatic |
◆ spot_step()
| static float spot_step |
( |
float |
angle, |
|
|
float |
cutoff |
|
) |
| |
|
inlinestatic |