citro3d  1.2.0
Data Structures | Functions
fog.h File Reference
#include "types.h"
#include <math.h>
Include dependency graph for fog.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  C3D_FogLut
 
struct  C3D_GasLut
 

Functions

static float FogLut_CalcZ (float depth, float near, float far)
 
void FogLut_FromArray (C3D_FogLut *lut, const float data[256])
 
void FogLut_Exp (C3D_FogLut *lut, float density, float gradient, float near, float far)
 
void C3D_FogGasMode (GPU_FOGMODE fogMode, GPU_GASMODE gasMode, bool zFlip)
 
void C3D_FogColor (u32 color)
 
void C3D_FogLutBind (C3D_FogLut *lut)
 
void GasLut_FromArray (C3D_GasLut *lut, const u32 data[9])
 
void C3D_GasBeginAcc (void)
 
void C3D_GasDeltaZ (float value)
 
void C3D_GasAccMax (float value)
 
void C3D_GasAttn (float value)
 
void C3D_GasLightPlanar (float min, float max, float attn)
 
void C3D_GasLightView (float min, float max, float attn)
 
void C3D_GasLightDirection (float dotp)
 
void C3D_GasLutInput (GPU_GASLUTINPUT input)
 
void C3D_GasLutBind (C3D_GasLut *lut)
 

Function Documentation

◆ C3D_FogColor()

void C3D_FogColor ( u32  color)

◆ C3D_FogGasMode()

void C3D_FogGasMode ( GPU_FOGMODE  fogMode,
GPU_GASMODE  gasMode,
bool  zFlip 
)

◆ C3D_FogLutBind()

void C3D_FogLutBind ( C3D_FogLut lut)

◆ C3D_GasAccMax()

void C3D_GasAccMax ( float  value)

◆ C3D_GasAttn()

void C3D_GasAttn ( float  value)

◆ C3D_GasBeginAcc()

void C3D_GasBeginAcc ( void  )

◆ C3D_GasDeltaZ()

void C3D_GasDeltaZ ( float  value)

◆ C3D_GasLightDirection()

void C3D_GasLightDirection ( float  dotp)

◆ C3D_GasLightPlanar()

void C3D_GasLightPlanar ( float  min,
float  max,
float  attn 
)

◆ C3D_GasLightView()

void C3D_GasLightView ( float  min,
float  max,
float  attn 
)

◆ C3D_GasLutBind()

void C3D_GasLutBind ( C3D_GasLut lut)

◆ C3D_GasLutInput()

void C3D_GasLutInput ( GPU_GASLUTINPUT  input)

◆ FogLut_CalcZ()

static float FogLut_CalcZ ( float  depth,
float  near,
float  far 
)
inlinestatic

◆ FogLut_Exp()

void FogLut_Exp ( C3D_FogLut lut,
float  density,
float  gradient,
float  near,
float  far 
)

◆ FogLut_FromArray()

void FogLut_FromArray ( C3D_FogLut lut,
const float  data[256] 
)

◆ GasLut_FromArray()

void GasLut_FromArray ( C3D_GasLut lut,
const u32  data[9] 
)