16 static inline float FogLut_CalcZ(
float depth,
float near,
float far)
18 return far*near/(depth*(far-near)+near);
24 void C3D_FogGasMode(GPU_FOGMODE fogMode, GPU_GASMODE gasMode,
bool zFlip);
void C3D_GasLutInput(GPU_GASLUTINPUT input)
Definition: gas.c:125
void FogLut_FromArray(C3D_FogLut *lut, const float data[256])
Definition: fog.c:3
void C3D_FogColor(u32 color)
Definition: fog.c:58
void C3D_GasLightPlanar(float min, float max, float attn)
Definition: gas.c:88
void C3D_GasDeltaZ(float value)
Definition: gas.c:52
static float FogLut_CalcZ(float depth, float near, float far)
Definition: fog.h:16
void C3D_GasLightView(float min, float max, float attn)
Definition: gas.c:100
void FogLut_Exp(C3D_FogLut *lut, float density, float gradient, float near, float far)
Definition: fog.c:30
void C3D_GasAccMax(float value)
Definition: gas.c:64
void C3D_FogLutBind(C3D_FogLut *lut)
Definition: fog.c:69
void C3D_GasAttn(float value)
Definition: gas.c:76
void C3D_GasBeginAcc(void)
Definition: gas.c:42
void C3D_FogGasMode(GPU_FOGMODE fogMode, GPU_GASMODE gasMode, bool zFlip)
Definition: fog.c:46
void GasLut_FromArray(C3D_GasLut *lut, const u32 data[9])
Definition: gas.c:30
void C3D_GasLutBind(C3D_GasLut *lut)
Definition: gas.c:138
void C3D_GasLightDirection(float dotp)
Definition: gas.c:112