shaders.h (615B)
1 #pragma once 2 3 #include "renderer.h" 4 5 enum ShaderID { 6 SHADER_TEXT, 7 SHADER_MSDF, 8 9 SHADER_SKYBOX, 10 SHADER_FLAT_VERTEX_COLOURS, 11 SHADER_FLAT_TEXTURED, 12 SHADER_UI, 13 SHADER_TREE, 14 SHADER_WRITE_SHADOW_MAP, 15 SHADER_DEBUG_RENDER_SHADOW_MAP, 16 SHADER_SHADOWED_VERTEX_COLOURS, 17 SHADER_WIREFRAME, 18 SHADER_CLIPMAP, 19 SHADER_CLIPMAP_SKIRT, 20 21 SHADER_SHADOWED_VERTEX_COLOURS_TO_GBUFFER, 22 SHADER_FLAT_VERTEX_COLOURS_TO_GBUFFER, 23 SHADER_GBUFFER, 24 SHADER_DEPTH_EDGE, 25 26 SHADER_SKINNED_FLAT_VERTEX_COLOURS, 27 28 SHADER_COUNT, 29 }; 30 31 void shaders_init(); 32 const Shader * get_shader( ShaderID id ); 33 void shaders_term(); 34 35 int hotload_shaders();