Space Sim
Loading...
Searching...
No Matches
shadow.vert File Reference

Go to the source code of this file.

Data Structures

struct  Vertex

Macros

#define LODMAX   4
#define MAX_CHUNKS   1000

Functions

 layout (location=0) in vec3 aPosition
 layout (std430, binding=10) buffer DensityVertexData
void main ()

Variables

uniform mat4 projection
uniform mat4 view
uniform float uPlanetRadius

Data Structure Documentation

◆ Vertex

struct Vertex

Definition at line 347 of file types.h.

Data Fields
vec3 pos
float pad0
vec3 normal
float pad1
vec3 color
float pad2

Macro Definition Documentation

◆ LODMAX

#define LODMAX   4

Definition at line 21 of file shadow.vert.

◆ MAX_CHUNKS

#define MAX_CHUNKS   1000

Definition at line 22 of file shadow.vert.

Function Documentation

◆ layout() [1/2]

layout ( location = 0)

References layout().

◆ layout() [2/2]

layout ( std430 ,
binding = 10 )

Definition at line 23 of file shadow.vert.

References layout(), and MAX_CHUNKS.

◆ main()

void main ( )

Definition at line 28 of file shadow.vert.

References main(), projection, uPlanetRadius, view, and vec3::z.

Variable Documentation

◆ projection

uniform mat4 projection

Definition at line 8 of file shadow.vert.

Referenced by layout(), layout(), layout(), and main().

◆ view

uniform mat4 view

Definition at line 9 of file shadow.vert.

Referenced by layout(), layout(), layout(), main(), and render_sky_cubemap().

◆ uPlanetRadius

uniform float uPlanetRadius

Definition at line 10 of file shadow.vert.