Space Sim
Loading...
Searching...
No Matches
shaders.c File Reference
#include "core/init.h"
#include "core/shaders.h"
#include <stdio.h>
#include <string.h>

Go to the source code of this file.

Functions

char * read_file (const char *filename)
GLuint create_compute_shader (const char *filename)
GLuint compile_shader (GLenum type, const char *filename)
GLuint create_shader_program (const char *vertexPath, const char *fragmentPath)
void init_main_shader ()
void init_mesh_shader ()
void init_atmosphere_shader ()
void init_clouds_shader ()
void init_atmosphere_from_space_shader ()
void init_sky_shader ()
void init_water_shader ()
void init_shadow_map_shader ()
void init_shadow_water_shader ()
void init_postprocess_shader ()
void init_density_compute_shader ()
void init_marching_cubes_compute_shader ()
void init_indirect_compute_shader ()
void init_shaders ()

Function Documentation

◆ read_file()

char * read_file ( const char * filename)

Definition at line 7 of file shaders.c.

References read_file(), and size.

Referenced by compile_shader(), create_compute_shader(), and read_file().

◆ create_compute_shader()

GLuint create_compute_shader ( const char * filename)

◆ compile_shader()

GLuint compile_shader ( GLenum type,
const char * filename )

Definition at line 61 of file shaders.c.

References compile_shader(), and read_file().

Referenced by compile_shader(), and create_shader_program().

◆ create_shader_program()

◆ init_main_shader()

◆ init_mesh_shader()

◆ init_atmosphere_shader()

◆ init_clouds_shader()

◆ init_atmosphere_from_space_shader()

◆ init_sky_shader()

◆ init_water_shader()

◆ init_shadow_map_shader()

◆ init_shadow_water_shader()

◆ init_postprocess_shader()

◆ init_density_compute_shader()

◆ init_marching_cubes_compute_shader()

◆ init_indirect_compute_shader()

◆ init_shaders()