nngn
Loading...
Searching...
No Matches
light_frag.h File Reference
#include "../const.h"
Include dependency graph for light_frag.h:

Go to the source code of this file.

Functions

 LAYOUT2 (set=0, binding=1) uniform sampler2DArray lights_shadow_map
 
 LAYOUT (location=1) in vec3 frag_pos
 
float attenuation (uint i, float d)
 
float spot (uint i, vec3 d)
 
float light_spec (float spec, vec3 dir, vec3 view_dir)
 
float sample_shadow (uint i, vec2 v)
 
float sample_shadow_point (uint i, vec3 v)
 
bool in_shadow (uint i)
 
bool in_shadow_point (uint i)
 
vec3 light ()
 

Variables

uniform samplerCube lights_shadow_cube [8]
 

Function Documentation

◆ attenuation()

float attenuation ( uint i,
float d )
Here is the caller graph for this function:

◆ in_shadow()

bool in_shadow ( uint i)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ in_shadow_point()

bool in_shadow_point ( uint i)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ LAYOUT()

LAYOUT ( location = 1)

◆ LAYOUT2()

LAYOUT2 ( set = 0,
binding = 1 )

◆ light()

vec3 light ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ light_spec()

float light_spec ( float spec,
vec3 dir,
vec3 view_dir )
Here is the caller graph for this function:

◆ sample_shadow()

float sample_shadow ( uint i,
vec2 v )
Here is the caller graph for this function:

◆ sample_shadow_point()

float sample_shadow_point ( uint i,
vec3 v )
Here is the caller graph for this function:

◆ spot()

float spot ( uint i,
vec3 d )
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ lights_shadow_cube

uniform samplerCube lights_shadow_cube[8]