|
Untitled
|
Important globals for the entire engine and initialization functions that are mainly called on engine start. More...
Go to the source code of this file.
Functions | |
| void | allocate_main_fbo () |
| Allocates the main FBO, changes if MSAA is enabled. | |
| void | change_fbo_resolution (Framebuffer *fbo, int w, int h, bool skip_depth) |
| Changes Framebuffer's resolution, and deletes the old textures. | |
| void | GPU_upload_scene_data () |
| Uploads current Globals and SceneData structures to the GPU for baking SSBOs. | |
| void | GPU_init_cluster_aabbs () |
| Initializes AABBs on the GPU for clustered forward shading. | |
| AssetInstance * | init_new_asset_instance (const char *asset_name, vec3 tr, vec4 rot, vec3 scale) |
| Initializes and spawns a new AssetInstance based on an Asset name, and places the AssetInstance.model at a certain transformation. | |
| void | destroy_asset_instance (uint32_t id) |
| Destroys and frees an AssetInstance. | |
| void | init_default_textures () |
| Initializes dummy default textures inside of Globals.images that are used as fallback for empty Materials. | |
| Material * | init_new_material (const char *filename) |
| Expands Globals.materials and initializes a material to default. | |
| Mesh * | retrieve_mesh_by_name (const char *asset_name, const char *mesh_name) |
| Searches Globals.assets for a certain Mesh. | |
| void | init_mesh (Mesh *mesh) |
| Initializes a static or dynamic Mesh. | |
| void | allocate_gbuffer_msaa () |
| Allocated a gbuffer with multisampled textures. | |
| void | allocate_gbuffer () |
| Allocates a gbuffer without multisampled textures. | |
| bool | init (SDL_Window **window, SDL_GLContext *context) |
| Initializes the engine, including SDL, OpenGL, GLEW, Nuklear, and engine-specific systems. | |
Debug Draw Buffers | |
Pushed to each frame for wireframes and debug information.
| |
| #define | DEBUG_LINES_MAX 500000 |
| DebugVertex | DEBUG_FACES [1024][3] |
| int | DEBUG_FACE_COUNT |
| DebugVertex | DEBUG_POINTS [1024] |
| int | DEBUG_POINT_COUNT |
| DebugVertex | DEBUG_LINES [500000] |
| int | DEBUG_LINE_COUNT |
Performance Queries | |
GLQuery results that are pushed to performance overlay.
| |
| #define | QUERY_FRAMES 3 |
| GLuint | main_queries [3] |
| GLuint | pl_queries [3] |
| GLuint | sm_queries [3] |
| GLuint | render_queries [3] |
| GLuint | gbuffer_queries [3] |
| GLuint | dof_queries [3] |
| GLuint | ssao_queries [3] |
| GLuint | taa_queries [3] |
| GLuint | ssr_queries [3] |
| GLuint | bloom_queries [3] |
| GLuint | cull_queries [3] |
| int | current_query_frame |
Stack Arrays | |
Stack arrays for components and engine structures that use a free list to manage destruction and lifetime. | |
| #define | MAX_ENTITIES 256 |
| #define | MAX_ASSET_INSTANCES 256 |
| #define | MAX_PHYSICS_COMPONENTS 256 |
| #define | MAX_MANIFOLDS 64 |
| The maximum amount of Manifolds in MANIFOLDS. | |
| #define | MAX_ANIMATION_COMPONENTS 256 |
| Entity | ENTITIES [256] |
| AssetInstance | ASSET_INSTANCES [256] |
| PhysicsComponent | PHYSICS_COMPONENTS [256] |
| Manifold | MANIFOLDS [64] |
| AnimationComponent | ANIMATION_COMPONENTS [256] |
Important globals for the entire engine and initialization functions that are mainly called on engine start.
Definition in file init.h.
| #define DEBUG_LINES_MAX 500000 |
Definition at line 347 of file init.h.
Referenced by init(), render(), and render_probe_volume().
| #define MAX_ENTITIES 256 |
Definition at line 439 of file init.h.
Referenced by create_entity(), init_globals(), main(), scene_load(), scene_save(), and update_entities().
| #define MAX_ASSET_INSTANCES 256 |
Definition at line 442 of file init.h.
Referenced by init_globals(), init_new_asset_instance(), render_editor_menu(), scene_load(), scene_save(), update_scene_nodes(), update_skin_matrices(), and upload_joint_matrices().
| #define MAX_PHYSICS_COMPONENTS 256 |
Definition at line 445 of file init.h.
Referenced by create_physics_component(), init_globals(), init_player(), scene_load(), scene_save(), and update_physics_components().
| #define MAX_MANIFOLDS 64 |
The maximum amount of Manifolds in MANIFOLDS.
Definition at line 448 of file init.h.
Referenced by create_new_manifold(), find_manifold_for_pair(), init_globals(), and update_physics_components().
| #define MAX_ANIMATION_COMPONENTS 256 |
Definition at line 451 of file init.h.
Referenced by create_animation_component(), init_globals(), scene_load(), scene_save(), and update_animation_components().
| void allocate_main_fbo | ( | ) |
Allocates the main FBO, changes if MSAA is enabled.
Definition at line 1711 of file init.c.
References allocate_main_fbo(), deallocate_fbo(), DEPTH_MODE_NONE, Framebuffer::depth_rbo, GLOBALS, Framebuffer::h, init_fbo(), init_gl_renderbuffer(), init_gl_texture(), MAIN_FBO, MAIN_RESOLVE_FBO, Globals::msaa_samples, Framebuffer::rbo_count, RENDER_HEIGHT, RENDER_WIDTH, Framebuffer::renderbuffers, Framebuffer::texture, Framebuffer::texture_count, and Framebuffer::w.
Referenced by allocate_main_fbo(), change_render_resolution(), init(), and render_main_menu().
| void change_fbo_resolution | ( | Framebuffer * | fbo, |
| int | w, | ||
| int | h, | ||
| bool | skip_depth ) |
Changes Framebuffer's resolution, and deletes the old textures.
| fbo | The Framebuffer that changes. |
| w | The width. |
| h | The height. |
| skip_depth | If depth texture needs to also change. |
Definition at line 1361 of file init.c.
References change_fbo_resolution(), Framebuffer::depth_texture, Framebuffer::fbo, generate_gl_texture(), Framebuffer::h, GLTexture::h, GLTexture::i, init_fbo(), Framebuffer::texture, Framebuffer::texture_count, Framebuffer::w, and GLTexture::w.
Referenced by change_bloom_res(), change_dof_res(), change_fbo_resolution(), change_render_resolution(), and change_ssao_res().
| void GPU_upload_scene_data | ( | ) |
Uploads current Globals and SceneData structures to the GPU for baking SSBOs.
Definition at line 661 of file init.c.
References BVHNode::aabb, Vector::buffer, MeshGPU::bvh_index, SceneData::bvh_indices, SceneData::bvh_indices_count, SceneData::bvh_nodes, CAST_VEC, AABB::center, BVHNode::count, Vector::count, AABB::extents, BVHNode::first_index, MeshNode::free, MeshGPU::global_matrix, MeshNode::global_matrix, GLOBALS, GPU_unwrap_mesh_to_buffers(), GPU_upload_scene_data(), init_vector(), MeshGPU::is_static, BVHNode::left, m4_inverse(), AABB::max_x, AABB::max_y, AABB::max_z, MeshNode::mesh, MESH_BVH_DATA, MESH_BVH_SSBO, MESH_DATA, MeshGPU::mesh_id, MeshGPU::mesh_node_id, Globals::mesh_nodes, MESH_SSBO, Globals::meshes, MeshData::meshes, AABB::min_x, AABB::min_y, AABB::min_z, n, BVHNode::next, MeshGPU::node_count, MeshGPU::node_offset, BVHGPU::nodes, BVHNode::parent, BVHNode::right, SCENE_BVH_DATA, SCENE_BVH_SSBO, Globals::scene_data, MeshGPU::skip_directional_light, MeshNode::skip_directional_uv_lighting, Mesh::static_mesh, MeshGPU::tri_count, TRI_DATA, MeshGPU::tri_offset, TRI_SSBO, TriData::tris, MeshGPU::vertex_count, VERTEX_DATA, MeshGPU::vertex_offset, VERTEX_SSBO, and VertexData::vertices.
Referenced by execute_globals_undo(), GPU_upload_scene_data(), main(), render_light_menu(), render_main_menu(), scene_load(), and scene_load_volumes().
| void GPU_init_cluster_aabbs | ( | ) |
Initializes AABBs on the GPU for clustered forward shading.
Definition at line 778 of file init.c.
References GPU_init_cluster_aabbs(), GRID_X, GRID_Y, GRID_Z, INIT_CLUSTER_AABBS_SHADER, RENDER_HEIGHT, RENDER_WIDTH, VIEW_FAR, and VIEW_NEAR.
Referenced by GPU_init_cluster_aabbs(), and main().
| AssetInstance * init_new_asset_instance | ( | const char * | asset_name, |
| vec3 | tr, | ||
| vec4 | rot, | ||
| vec3 | scale ) |
Initializes and spawns a new AssetInstance based on an Asset name, and places the AssetInstance.model at a certain transformation.
| asset_name | The name of the Asset. |
| tr | The translation. |
| rot | The rotation. |
| scale | The scale. |
Definition at line 304 of file init.c.
References Asset::aabb, AssetInstance::aabb, GLTFSkin::animation_indices, Asset::asset_id, AssetInstance::asset_id, MeshNode::asset_instance, ASSET_INSTANCES, Globals::assets, CAST_VEC, MeshNode::child_count, MeshNode::children, compose_trs_from_vectors(), Vector::count, create_entity(), MeshNode::ent, GLTFSkin::final_mat, find_free_in_vector(), AssetInstance::first_skin, AssetInstance::free, GLTFSkin::free, MeshNode::free, GLOBALS, AssetInstance::id, GLTFSkin::id, MeshNode::id, init_new_asset_instance(), GLTFSkin::inverse_bind, GLTFSkin::joint_count, GLTFSkin::joints, MeshNode::local_id, MAX_ANIMATION_INDICES, MAX_ASSET_INSTANCES, Globals::mesh_nodes, AssetInstance::model, GLTFSkin::name, MeshNode::name, Asset::node_count, AssetInstance::node_count, AssetInstance::node_indices, Asset::nodes, MeshNode::parent, MeshNode::pc, MeshNode::physics_mode, retrieve_asset_by_name(), AssetInstance::rot, rot(), AssetInstance::scale, set_mn_components_to_children(), MeshNode::skin, Asset::skin_count, AssetInstance::skin_count, AssetInstance::skin_indices, Asset::skins, Globals::skins, MeshNode::skip_directional_uv_lighting, AssetInstance::tr, and MeshNode::uv_map.
Referenced by init_new_asset_instance(), main(), and render_main_menu().
| void destroy_asset_instance | ( | uint32_t | id | ) |
Destroys and frees an AssetInstance.
| id | The ID of the AssetInstance into ASSET_INSTANCES to destroy. |
Definition at line 418 of file init.c.
References ASSET_INSTANCES, CAST_VEC, destroy_asset_instance(), GLTFSkin::final_mat, AssetInstance::free, GLTFSkin::free, MeshNode::free, GLOBALS, GLTFSkin::inverse_bind, GLTFSkin::joints, Globals::mesh_nodes, AssetInstance::node_count, AssetInstance::node_indices, AssetInstance::skin_count, AssetInstance::skin_indices, and Globals::skins.
Referenced by destroy_asset_instance(), execute_globals_undo(), and render_asset_instance_menu().
| void init_default_textures | ( | ) |
Initializes dummy default textures inside of Globals.images that are used as fallback for empty Materials.
Definition at line 794 of file init.c.
References Image::buf, Image::channels, Vector::count, DEFAULT_ARM, DEFAULT_DIFFUSE, DEFAULT_EMISSIVE, DEFAULT_NORMAL, DUMMY_LIGHTMAP, GLOBALS, Image::handle, Image::height, Image::i, Globals::images, init_default_textures(), Image::path, vector_expand(), and Image::width.
Referenced by init_default_textures(), and init_globals().
| Material * init_new_material | ( | const char * | filename | ) |
Expands Globals.materials and initializes a material to default.
| filename | The path and name of the file. |
Definition at line 41 of file init.c.
References Material::alpha_cutoff, Material::alpha_mode, Material::ao_strength, Material::ao_tex, Material::arm_tex, Material::diffuse_tex, Material::double_sided, Material::emissive_tex, GLOBALS, init_new_material(), Material::ka, Material::kd, Material::ke, Material::ks, Globals::materials, Material::metallic, Material::mr_tex, Material::name, Material::normal_scale, Material::normal_tex, Material::roughness, and vector_expand().
Referenced by init_globals(), and init_new_material().
| Mesh * retrieve_mesh_by_name | ( | const char * | asset_name, |
| const char * | mesh_name ) |
Searches Globals.assets for a certain Mesh.
Definition at line 242 of file init.c.
References Globals::assets, CAST_VEC, Vector::count, GLOBALS, Asset::mesh_indices, Globals::meshes, Mesh::name, Asset::path, and retrieve_mesh_by_name().
Referenced by retrieve_mesh_by_name().
| void init_mesh | ( | Mesh * | mesh | ) |
Initializes a static or dynamic Mesh.
| mesh | Pointer to Mesh. |
Definition at line 68 of file init.c.
References ConvexHull::aabb, Mesh::aabb, Vector::buffer, build_adjacency_map(), Mesh::bvh_indices, Mesh::bvh_prim, CAST_VEC, compute_mesh_hulls(), Vector::count, ConvexHull::faces, ConvexHull::hull_faces, Mesh::hulls, incremental_hull(), init_mesh(), init_mesh_tri_bvh(), init_vector(), Mesh::nodes, Point::pos, Mesh::static_mesh, Mesh::tri_aabbs, Mesh::tri_adjacency, Mesh::tris, vector_expand(), ConvexHull::vertices, and Mesh::vertices.
Referenced by init_mesh(), and load_gltf().
| void allocate_gbuffer_msaa | ( | ) |
Allocated a gbuffer with multisampled textures.
Definition at line 1769 of file init.c.
References allocate_gbuffer_msaa(), deallocate_fbo(), DEPTH_MODE_NO_HW, DEPTH_MODE_NONE, Framebuffer::depth_rbo, Framebuffer::depth_texture, GBUFFER_FBO, GBUFFER_RESOLVE_FBO, GLOBALS, GVEL, Framebuffer::h, init_fbo(), init_gl_renderbuffer(), init_gl_texture(), Globals::msaa_samples, Framebuffer::rbo_count, RENDER_HEIGHT, RENDER_WIDTH, Framebuffer::renderbuffers, Framebuffer::texture, Framebuffer::texture_count, and Framebuffer::w.
Referenced by allocate_gbuffer_msaa(), change_render_resolution(), init(), and render_main_menu().
| void allocate_gbuffer | ( | ) |
Allocates a gbuffer without multisampled textures.
Definition at line 1844 of file init.c.
References allocate_gbuffer(), deallocate_fbo(), DEPTH_MODE_NO_HW, DEPTH_MODE_NONE, Framebuffer::depth_texture, GALBEDO, GBUFFER_FBO, GBUFFER_RESOLVE_FBO, GEXTRA, GNORMAL, GPOMDEPTH, GUV, GVEL, Framebuffer::h, init_fbo(), init_gl_texture(), RENDER_HEIGHT, RENDER_WIDTH, Framebuffer::texture, Framebuffer::texture_count, and Framebuffer::w.
Referenced by allocate_gbuffer(), init(), and render_main_menu().
| bool init | ( | SDL_Window ** | window, |
| SDL_GLContext * | context ) |
Initializes the engine, including SDL, OpenGL, GLEW, Nuklear, and engine-specific systems.
| window | SDL Window. |
| context | SDL Context. |
Definition at line 1987 of file init.c.
References allocate_gbuffer(), allocate_gbuffer_msaa(), allocate_main_fbo(), AUDIO_ENGINE, BAND_IMPULSES, ConvolverNode::base, bind_render_ssbos(), BLENDED_RPROBE_CUBE_MAP, BLOOM_HEIGHT, BLOOM_PYRAMID, BLOOM_WIDTH, BOKEH_FBO, BRDF_FBO, BRDF_LUT, BRDF_SHADER, BUFFER_FRAMES, CAM_UBO, cam_ubo_padded, cam_ubo_ptr, CLUSTER_AABB_SSBO, CLUSTER_SSBO, COC_FBO, COLOR_GRADE_LUT, CONVOLVE_TRIANGLE_VAO, CONVOLVE_TRIANGLE_VBO, CONVOLVER_NODE, DEBUG_LINES_MAX, DEFAULT_POINT_LIGHT_SHADOWS_SIZE, DEFAULT_SHADOW_MAP_SIZE, DEPTH_DOWNSAMPLE_FBO, DEPTH_MODE_HW, DEPTH_MODE_NONE, Framebuffer::depth_rbo, Framebuffer::depth_texture, DOF_HEIGHT, DOF_WIDTH, EDITOR_SETTINGS, FBM_TEXTURE, FBM_TEXTURE_SIZE, Framebuffer::fbo, FILE_DIR_REGISTRY_INIT(), FONTS_INIT(), FOOTSTEP_EMITTER, FS_VAO, GBUFFER_FBO, GBUFFER_RESOLVE_FBO, GLOBAL_INSTANCE_SSBO, GLOBAL_LIGHT_INDICES_SSBO, Framebuffer::h, HISTORY_FBO, HISTORY_TEXTURE, HRTF_TD, GLRenderbuffer::i, GLTexture::i, INDIRECT_ARRAYS_COMMAND_BUFFER, INDIRECT_ARRAYS_COMMAND_BUFFER_OUT, indirect_arrays_out_ptr, indirect_arrays_ptr, INDIRECT_ELEMENTS_COMMAND_BUFFER, INDIRECT_ELEMENTS_COMMAND_BUFFER_OUT, indirect_elements_out_ptr, indirect_elements_ptr, init(), init_action_callbacks(), init_audio_scratch_buffers(), init_band_kernels(), init_emitter(), init_fbo(), init_gl_texture(), init_globals(), init_hover_callbacks(), init_player(), init_sdl_audio(), init_vertex_layouts(), INSTANCE_SSBO, instance_ssbo_ptr, instance_ssbo_size, INSTANCE_VBO, instance_vbo_ptr, instance_vbo_size, HRTFThreadData::ir_swap_lock, JOINT_SSBO, joint_ssbo_ptr, joint_ssbo_size, LIGHT_CAM_UBO, light_cam_ubo_padded, light_cam_ubo_ptr, LIGHT_SSBO, light_ssbo_ptr, light_ssbo_size, LIGHTMAP_FBO, LIGHTMAP_HEIGHT, LIGHTMAP_ID_TEXTURE, LIGHTMAP_NORM_TEXTURE, LIGHTMAP_POS_TEXTURE, LIGHTMAP_SSBO, LIGHTMAP_VAO, LIGHTMAP_VBO, LIGHTMAP_WIDTH, load_3d_lut(), load_cubemap(), load_hrtf_from_binary(), ConvolverNode::lock, LPV_SLOTS, LPV_TEXTURE, MAIN_EBO, MAIN_FBO, MAIN_RESOLVE_FBO, MAIN_VAO, MAIN_VBO, MATERIAL_SSBO, MAX_DIRECTIONAL_LIGHTS, MAX_INSTANCES, MAX_JOINT_MATRICES, MAX_LIGHTS, MAX_LIGHTS_PER_CLUSTER, MAX_LIGHTS_PER_MESH, MAX_MESH_NODES, MAX_POINT_LIGHT_SHADOWS_CMA, MAX_RPROBE_MIPS, MAX_TEXT_BOX_CHARACTERS, MAX_TEXT_BOXES, MAX_UI_ELEMENTS, MESH_BVH_SSBO, MESH_LIGHT_SSBO, mesh_light_ssbo_ptr, mesh_light_ssbo_size, MESH_NODE_SSBO, mesh_node_ssbo_ptr, mesh_node_ssbo_size, MESH_SSBO, EditorSettings::MSAA, my_custom_node_vtable, NK_CTX, play_emitter(), POINT_LIGHT_SHADOWS_FBO, precompute_fbm_texture(), precompute_ssao_kernel(), PROBE_SSBO, PROBE_VOLUME_DEPTH_PADDED, PROBE_VOLUME_HEIGHT, PROBE_VOLUME_UBO, probe_volume_ubo_padded, probe_volume_ubo_ptr, PROBE_VOLUME_WIDTH, ShaderProgram::program, rand(), Framebuffer::rbo_count, RENDER_HEIGHT, RENDER_UBO, RENDER_WIDTH, RPROBE_BACK_FBO, RPROBE_BACK_TEXTURE, RPROBE_CUBE_MAP_ARRAY, RPROBE_DEPTH_TEXTURE, RPROBE_FBO, RPROBE_HEIGHT, RPROBE_SSBO, RPROBE_UBO, rprobe_ubo_padded, rprobe_ubo_ptr, RPROBE_WIDTH, SCENE_BVH_SSBO, SCREEN_HEIGHT, SCREEN_WIDTH, SDL_AUDIO_DEVICE, SH_MAX, SHADERS_INIT(), SHADOW_MAP_FBO, SKY_VAO, SKY_VBO, SKYBOX, SOBEL_FBO, SOBEL_TEXTURE, SSAO_BLUR_FBO, SSAO_FBO, SSAO_HEIGHT, SSAO_KERNEL, SSAO_KERNEL_SIZE, SSAO_KERNEL_UBO, SSAO_NOISE_TEXTURE, SSAO_WIDTH, SSR_BLUR_FBO, SSR_FBO, SSR_HEIGHT, SSR_WIDTH, STATES_INIT(), TAA_FBO, TEMP_RPROBE_CUBE_MAP, TEXT_BOX_SSBO, text_box_ssbo_ptr, text_box_ssbo_size, TEXT_EBO, TEXT_FBO, TEXT_HEIGHT, TEXT_VAO, TEXT_VBO, text_vbo_size, TEXT_WIDTH, Framebuffer::texture, Framebuffer::texture_count, TOTAL_CLUSTERS, TRI_SSBO, UI_INIT(), UI_INSTANCE_VBO, ui_instance_vbo_ptr, ui_instance_vbo_size, UI_SSBO, ui_ssbo_ptr, ui_ssbo_size, UI_VAO, UI_VBO, ui_vbo_ptr, ui_vbo_size, UNDO_INIT(), VERTEX_SSBO, Framebuffer::w, window, WIREFRAME_VAO, and WIREFRAME_VBO.
|
extern |
The 1.0f/60 simulation timestep.
Definition at line 319 of file main.c.
Referenced by apply_planet_velocity(), apply_velocity(), calculate_camera_angles(), main(), PC_apply_velocity(), PC_resolve_impulse(), PC_resolve_impulse_static(), player_resolve_impulse(), player_resolve_impulse_static(), process_input(), resolve_collisions(), update_angular_spring(), update_animation_components(), update_body_from_legs(), update_leg(), update_physics_components(), update_skeleton(), and update_spring().
|
extern |
|
extern |
The frame time but wrapping at 1.0.
Definition at line 320 of file main.c.
Referenced by bind_dynamic_shader(), main(), play_animation(), render(), render_entity_menu(), render_to_cubemap_face(), and update_performance_overlay().
|
extern |
The variable that tracks if we need to exit main().
Definition at line 317 of file main.c.
Referenced by main(), process_input(), and process_sdl_event().
|
extern |
If the left mouse button is held.
Definition at line 51 of file main.c.
Referenced by handle_held_events(), and process_sdl_event().
|
extern |
Definition at line 183 of file main.c.
Referenced by GPU_upload_singular_element(), GPU_upload_singular_text_box(), handle_ui_selection_event(), main(), process_input(), and process_sdl_event().
|
extern |
Shorthand variable for the camera position.
Definition at line 205 of file main.c.
Referenced by determine_closest_rprobes(), main(), and process_sdl_event().
|
extern |
If we need to reupload and resort transforms in create_and_sort_draw_commands() and upload_instance_data().
Definition at line 388 of file main.c.
Referenced by execute_globals_undo(), execute_mesh_node_undo(), main(), render_main_menu(), render_mn_menu(), render_to_cubemap_face(), and scene_load().
|
extern |
The time since the last render (while running physics updates).
Computes the dot product or discrete sum over an array range.
The time since the last render (while running physics updates).
\[S = \sum_{i=0}^{N-1} x[i] \cdot w[i] \]
Applies an impulse response filter via discrete convolution.
\[(x * h)[n] = \sum_{m=-\infty}^{\infty} x[m] \, h[n - m] \]
Evaluates the rendering equation for global illumination.
\[L_o(x, \omega_o) = L_e(x, \omega_o) + \int_{\Omega} f_r(x, \omega_i, \omega_o) L_i(x, \omega_i) (\omega_i \cdot n) \, d\omega_i \]
Computes Schlick's approximation for Fresnel reflectance.
\begin{eqnarray*}F(\theta) &=& F_0 + (1 - F_0)(1 - \cos\theta)^5 \\ \text{where } \cos\theta &=& \max(0, \omega_h \cdot v) \end{eqnarray*}
Definition at line 505 of file main.c.
Referenced by main(), and render_to_cubemap_face().
|
extern |
The Player data.
Definition at line 287 of file main.c.
Referenced by apply_planet_velocity(), apply_velocity(), audio_update(), check_audio_pv(), check_lighting_pv(), init_action_callbacks(), init_player(), init_player_PC(), main(), PC_resolve_impulse(), PC_resolve_impulse_static(), player_find_collision(), player_resolve_impulse(), process_input(), render(), resolve_collisions(), update_audio_occlusion(), update_body_from_legs(), update_camera(), update_light_camera(), update_player_audio_probe(), update_player_ir(), and update_skeleton().
|
extern |
Spawn point.
Definition at line 289 of file main.c.
Referenced by init_player(), and process_input().
|
extern |
Definition at line 25 of file render.c.
Referenced by bake_reflection_probes(), determine_light_visibility_per_mesh(), GPU_upload_ui_elements(), main(), render(), render_to_cubemap_face(), upload_bake_lights_gpu(), upload_instance_data(), upload_instances(), upload_joint_matrices(), and upload_lights().
|
extern |
Definition at line 21 of file render.c.
Referenced by render(), update_camera(), and write_point_light_shadows().
|
extern |
|
extern |
Definition at line 391 of file main.c.
Referenced by update_skeleton().
|
extern |
Definition at line 392 of file main.c.
Referenced by update_skeleton().
|
extern |
Definition at line 328 of file main.c.
Referenced by handle_ui_selection_event(), process_sdl_event(), render_asset_instance_menu(), render_audio_menu(), render_editor_menu(), render_entity_menu(), render_light_menu(), render_lprobe_menu(), render_main_menu(), render_material_menu(), render_mn_menu(), render_selection_menu(), render_text_menu(), and render_ui_menu().
|
extern |
Definition at line 330 of file main.c.
Referenced by assign_uvs(), bake_audio_probe_volume(), bake_lighting_probe_volume(), bake_lightmap(), bake_reflection_probes(), bind_dynamic_shader(), change_fullscreen_option(), change_render_resolution(), check_stack_size(), convolver_node_process_pcm_frames(), execute_aemitter_undo(), execute_aprobe_undo(), execute_asset_instance_undo(), execute_editor_settings_undo(), execute_light_undo(), execute_lprobe_undo(), execute_mesh_node_undo(), execute_rprobe_undo(), execute_text_box_undo(), GPU_upload_singular_element(), GPU_upload_singular_text_box(), GPU_upload_ui_elements(), handle_ui_selection_event(), init(), init_action_callbacks(), init_globals(), init_hover_callbacks(), load_lightmap_from_binary(), main(), process_input(), process_probe_chunk(), process_sdl_event(), render(), render_all_draw_commands(), render_asset_instance_menu(), render_audio_menu(), render_editor_menu(), render_entity_menu(), render_light_menu(), render_lprobe_menu(), render_main_menu(), render_mat4_widget(), render_material_menu(), render_mn_menu(), render_obb_widget(), render_probe_volume(), render_selection_menu(), render_text_menu(), render_to_cubemap_face(), render_ui_menu(), save_lightmap_to_binary(), and update_camera().
|
extern |
|
extern |
Definition at line 324 of file main.c.
Referenced by main(), and render_to_cubemap_face().
|
extern |
Definition at line 246 of file main.c.
Referenced by create_performance_overlay(), toggle_performance_overlay(), and update_performance_overlay().
|
extern |
Definition at line 247 of file main.c.
Referenced by create_performance_overlay(), GPU_upload_ui_elements(), toggle_performance_overlay(), and update_performance_overlay().
|
extern |
Nuklear context handle used for Editor UI.
Definition at line 327 of file main.c.
Referenced by handle_ui_selection_event(), init(), main(), process_sdl_event(), render_aabb_widget(), render_asset_instance_menu(), render_audio_menu(), render_dropdown(), render_dropdown_labels(), render_editor_menu(), render_entity_menu(), render_file_directory_dropdown(), render_ivec3_widget(), render_light_menu(), render_lprobe_menu(), render_main_menu(), render_mat4_widget(), render_material_menu(), render_mn_menu(), render_obb_widget(), render_pos_widget(), render_selection_menu(), render_text_menu(), and render_ui_menu().
|
extern |
Definition at line 519 of file main.c.
Referenced by calculate_attenuation(), CalculateAttenuation(), change_fullscreen_option(), execute_editor_settings_undo(), init(), main(), process_input(), and render_main_menu().
|
extern |
Definition at line 75 of file main.c.
Referenced by init_globals(), and pathfind_audio_occlusion().
|
extern |
Definition at line 291 of file main.c.
Referenced by epa(), EPA_add_horizon_face_to_hull_faces(), EPA_check_face_visibility(), EPA_check_horizon_edges(), EPA_expand_hull(), GJK(), init_globals(), PC_process_collision_node(), PC_traverse_scene_bvh(), and player_find_collision().
|
extern |
Definition at line 263 of file main.c.
Referenced by init(), init_sdl_audio(), and main().
|
extern |
Definition at line 66 of file main.c.
Referenced by audio_update(), init(), init_sdl_audio(), load_emitter(), and main().
|
extern |
Definition at line 73 of file main.c.
Referenced by allocate_audio_scratch_hrtf(), bake_audio_probe_volume(), check_audio_pv(), init_audio_scratch_buffers(), init_hrtf_worker_thread(), load_hrtf_from_binary(), main(), and update_player_ir().
|
extern |
Definition at line 71 of file main.c.
Referenced by allocate_audio_scratch_hrtf(), and load_hrtf_from_binary().
|
extern |
Definition at line 72 of file main.c.
Referenced by convolver_node_process_pcm_frames(), fft_channels(), hrtf_worker(), init(), init_audio_scratch_buffers(), and load_emitter().
|
extern |
Definition at line 52 of file main.c.
Referenced by main(), and process_probe_chunk().
|
extern |
Definition at line 54 of file main.c.
Referenced by interpolate_nearest_aprobes(), and render_probe_volume().
|
extern |
Definition at line 74 of file main.c.
Referenced by convolver_node_process_pcm_frames(), init(), init_audio_scratch_buffers(), main(), update_player_audio_probe(), and update_player_ir().
|
extern |
Definition at line 28 of file audio.c.
Referenced by init(), and process_probe_chunk().
|
extern |
Definition at line 149 of file main.c.
Referenced by init(), and update_leg().
|
extern |
Definition at line 67 of file main.c.
Referenced by audio_update(), destroy_emitter(), execute_aemitter_undo(), init_emitter(), init_globals(), process_sdl_event(), render(), render_audio_menu(), unload_emitter(), and update_audio_occlusion().
|
extern |
Definition at line 213 of file main.c.
Referenced by init(), and precompute_ssao_kernel().
|
extern |
Definition at line 77 of file main.c.
Referenced by change_fullscreen_option(), execute_editor_settings_undo(), GPU_upload_singular_element(), GPU_upload_singular_text_box(), init(), render(), render_asset_instance_menu(), render_audio_menu(), render_entity_menu(), render_light_menu(), render_lprobe_menu(), render_main_menu(), render_material_menu(), and render_text_menu().
|
extern |
Definition at line 78 of file main.c.
Referenced by change_fullscreen_option(), execute_editor_settings_undo(), GPU_upload_singular_element(), GPU_upload_singular_text_box(), init(), render(), render_asset_instance_menu(), render_entity_menu(), render_light_menu(), render_main_menu(), render_material_menu(), render_mn_menu(), render_selection_menu(), and render_ui_menu().
|
extern |
Definition at line 79 of file main.c.
Referenced by allocate_gbuffer(), allocate_gbuffer_msaa(), allocate_main_fbo(), bind_dynamic_shader(), change_render_resolution(), execute_editor_settings_undo(), GPU_init_cluster_aabbs(), init(), render(), render_main_menu(), render_to_cubemap_face(), update_camera(), and update_light_camera().
|
extern |
Definition at line 80 of file main.c.
Referenced by allocate_gbuffer(), allocate_gbuffer_msaa(), allocate_main_fbo(), bind_dynamic_shader(), change_render_resolution(), execute_editor_settings_undo(), GPU_init_cluster_aabbs(), init(), render(), render_main_menu(), render_to_cubemap_face(), update_camera(), and update_light_camera().
|
extern |
Definition at line 81 of file main.c.
Referenced by change_bloom_res(), execute_editor_settings_undo(), init(), and render_main_menu().
|
extern |
Definition at line 82 of file main.c.
Referenced by change_bloom_res(), execute_editor_settings_undo(), init(), and render_main_menu().
|
extern |
Definition at line 83 of file main.c.
Referenced by change_dof_res(), execute_editor_settings_undo(), init(), render_main_menu(), and render_to_cubemap_face().
|
extern |
Definition at line 84 of file main.c.
Referenced by change_dof_res(), execute_editor_settings_undo(), init(), render_main_menu(), and render_to_cubemap_face().
|
extern |
Definition at line 85 of file main.c.
Referenced by init(), and render_to_cubemap_face().
|
extern |
Definition at line 86 of file main.c.
Referenced by init(), and render_to_cubemap_face().
|
extern |
Definition at line 87 of file main.c.
Referenced by change_ssao_res(), execute_editor_settings_undo(), init(), render_main_menu(), and render_to_cubemap_face().
|
extern |
Definition at line 88 of file main.c.
Referenced by change_ssao_res(), execute_editor_settings_undo(), init(), render_main_menu(), and render_to_cubemap_face().
|
extern |
Definition at line 181 of file main.c.
Referenced by render_to_cubemap_face(), and update_camera().
|
extern |
Definition at line 16 of file fonts.c.
Referenced by add_all_text_boxes_to_draw_buffer(), and render().
|
extern |
Definition at line 135 of file main.c.
Referenced by init(), main(), and render_to_cubemap_face().
|
extern |
Definition at line 137 of file main.c.
Referenced by init(), and render_to_cubemap_face().
|
extern |
Definition at line 138 of file main.c.
Referenced by init(), and render_to_cubemap_face().
|
extern |
Definition at line 140 of file main.c.
Referenced by init(), and render_to_cubemap_face().
|
extern |
Definition at line 303 of file main.c.
Referenced by init(), and render_to_cubemap_face().
|
extern |
Definition at line 304 of file main.c.
Referenced by init(), and render_to_cubemap_face().
|
extern |
Definition at line 239 of file main.c.
Referenced by init(), render_all_draw_commands(), render_to_cubemap_face(), and write_point_light_shadows().
|
extern |
Definition at line 242 of file main.c.
Referenced by init(), render(), and render_bvh().
|
extern |
|
extern |
Definition at line 236 of file main.c.
Referenced by init(), init_vertex_layouts(), render_all_draw_commands(), render_to_cubemap_face(), and write_point_light_shadows().
|
extern |
Definition at line 237 of file main.c.
Referenced by init(), init_vertex_layouts(), render_all_draw_commands(), render_to_cubemap_face(), and write_point_light_shadows().
|
extern |
Definition at line 238 of file main.c.
Referenced by init(), init_vertex_layouts(), render_all_draw_commands(), render_to_cubemap_face(), and write_point_light_shadows().
|
extern |
|
extern |
Definition at line 251 of file main.c.
Referenced by add_all_text_boxes_to_draw_buffer(), init(), and render().
|
extern |
Definition at line 252 of file main.c.
Referenced by add_all_text_boxes_to_draw_buffer(), init(), and render().
|
extern |
Definition at line 217 of file main.c.
Referenced by bake_lightmap(), and init().
|
extern |
Definition at line 218 of file main.c.
Referenced by bake_lightmap(), and init().
|
extern |
Definition at line 176 of file main.c.
Referenced by init(), and render_to_cubemap_face().
|
extern |
Definition at line 177 of file main.c.
Referenced by bind_dynamic_shader(), init(), precompute_fbm_texture(), and render().
|
extern |
|
extern |
Definition at line 219 of file main.c.
Referenced by bake_lightmap(), and init().
|
extern |
Definition at line 220 of file main.c.
Referenced by bake_lightmap(), and init().
|
extern |
Definition at line 221 of file main.c.
Referenced by bake_lightmap(), and init().
|
extern |
Definition at line 222 of file main.c.
Referenced by bake_lightmap(), bind_dynamic_shader(), load_lightmap_from_binary(), and save_lightmap_to_binary().
|
extern |
Definition at line 305 of file main.c.
Referenced by bake_reflection_probes(), bind_dynamic_shader(), init(), and reallocate_rprobe_array().
|
extern |
Definition at line 268 of file main.c.
Referenced by bind_dynamic_shader(), init(), and load_lighting_pv().
|
extern |
|
extern |
Definition at line 203 of file main.c.
Referenced by bind_dynamic_shader(), and init().
|
extern |
Definition at line 302 of file main.c.
Referenced by bake_lighting_probe_volume(), bake_lightmap(), bind_dynamic_shader(), init(), and render_to_cubemap_face().
|
extern |
Definition at line 196 of file main.c.
Referenced by bind_material(), init_default_textures(), init_globals(), and upload_material_data().
|
extern |
Definition at line 197 of file main.c.
Referenced by bind_material(), init_default_textures(), init_globals(), and upload_material_data().
|
extern |
Definition at line 198 of file main.c.
Referenced by bind_material(), init_default_textures(), init_globals(), load_gltf(), and upload_material_data().
|
extern |
Definition at line 199 of file main.c.
Referenced by init_default_textures(), init_globals(), and upload_material_data().
|
extern |
Definition at line 201 of file main.c.
Referenced by bind_dynamic_shader(), and init_default_textures().
|
extern |
light/lightmap.vert light/lightmap.frag
Definition at line 128 of file main.c.
Referenced by bake_lightmap(), init_globals(), init_lightmap_shader(), and SHADERS_INIT().
|
extern |
Definition at line 225 of file main.c.
Referenced by bake_lightmap(), init_globals(), init_lightmap_bounce_compute_shader(), and SHADERS_INIT().
|
extern |
Definition at line 226 of file main.c.
Referenced by bake_lightmap(), init_globals(), init_lightmap_bounce_compute_shader(), and SHADERS_INIT().
|
extern |
Definition at line 227 of file main.c.
Referenced by bake_lightmap(), init_globals(), init_lightmap_bounce_compute_shader(), and SHADERS_INIT().
|
extern |
light/directional_map_normalize.comp
Definition at line 231 of file main.c.
Referenced by bake_lightmap(), init_globals(), init_lightmap_bounce_compute_shader(), and SHADERS_INIT().
|
extern |
Definition at line 228 of file main.c.
Referenced by bake_lighting_probe_volume(), init_globals(), init_lightmap_bounce_compute_shader(), and SHADERS_INIT().
|
extern |
Definition at line 230 of file main.c.
Referenced by bake_lighting_probe_volume(), init_globals(), init_lightmap_bounce_compute_shader(), and SHADERS_INIT().
|
extern |
Definition at line 229 of file main.c.
Referenced by init_audio_shader(), process_probe_chunk(), and SHADERS_INIT().
|
extern |
render/init_cluster_aabbs.comp
Definition at line 274 of file main.c.
Referenced by GPU_init_cluster_aabbs(), init_cull_clusers_compute_shader(), and SHADERS_INIT().
|
extern |
Definition at line 120 of file main.c.
Referenced by init_cull_clusers_compute_shader(), render_to_cubemap_face(), and SHADERS_INIT().
|
extern |
Definition at line 121 of file main.c.
Referenced by init_cull_draw_calls_compute_shader(), render_to_cubemap_face(), and SHADERS_INIT().
|
extern |
Definition at line 122 of file main.c.
Referenced by init_cull_draw_calls_compute_shader(), render_to_cubemap_face(), SHADERS_INIT(), and write_point_light_shadows().
|
extern |
Definition at line 123 of file main.c.
Referenced by init_cull_draw_calls_compute_shader(), render_to_cubemap_face(), SHADERS_INIT(), and write_point_light_shadows().
|
extern |
render/cull_point_light_shadows.comp
Definition at line 124 of file main.c.
Referenced by init_cull_draw_calls_compute_shader(), SHADERS_INIT(), and write_point_light_shadows().
|
extern |
render/sky.vert render/sky.frag
Definition at line 127 of file main.c.
Referenced by init_globals(), init_sky_shader(), render_to_cubemap_face(), and SHADERS_INIT().
|
extern |
render/shadow.vert render/shadow.frag
Definition at line 115 of file main.c.
Referenced by init_globals(), init_shadow_map_shader(), render_to_cubemap_face(), and SHADERS_INIT().
|
extern |
render/point_light_shadows.vert render/point_light_shadows.geom render/point_light_shadows.frag
Definition at line 130 of file main.c.
Referenced by init_globals(), init_shadow_map_shader(), SHADERS_INIT(), and write_point_light_shadows().
|
extern |
render/depth_pre_pass.vert render/depth_pre_pass.frag
Definition at line 116 of file main.c.
Referenced by init_depth_pre_pass_shader(), init_globals(), parse_gltf_materials(), render_to_cubemap_face(), and SHADERS_INIT().
|
extern |
render/depth_pre_pass_no_gbuffer.vert render/depth_pre_pass_no_gbuffer.frag
Definition at line 117 of file main.c.
Referenced by init_depth_pre_pass_shader(), and render_to_cubemap_face().
|
extern |
Definition at line 133 of file main.c.
Referenced by init_depth_pre_pass_shader(), and render_to_cubemap_face().
|
extern |
Definition at line 105 of file main.c.
Referenced by init_globals(), init_ssao_shader(), render_to_cubemap_face(), and SHADERS_INIT().
|
extern |
Definition at line 106 of file main.c.
Referenced by init_globals(), init_ssao_shader(), render_to_cubemap_face(), and SHADERS_INIT().
|
extern |
render/dynamic.vert render/dynamic.frag
Definition at line 114 of file main.c.
Referenced by bind_dynamic_shader(), bind_material(), init_dynamic_shader(), init_globals(), parse_gltf_materials(), render_all_draw_commands(), and SHADERS_INIT().
|
extern |
Definition at line 107 of file main.c.
Referenced by init_globals(), render_to_cubemap_face(), and SHADERS_INIT().
|
extern |
Definition at line 108 of file main.c.
Referenced by init_globals(), and SHADERS_INIT().
|
extern |
Definition at line 109 of file main.c.
Referenced by render_to_cubemap_face(), and SHADERS_INIT().
|
extern |
Definition at line 110 of file main.c.
Referenced by init_dof_shader(), render_to_cubemap_face(), and SHADERS_INIT().
|
extern |
Definition at line 111 of file main.c.
Referenced by init_dof_shader(), render_to_cubemap_face(), and SHADERS_INIT().
|
extern |
Definition at line 112 of file main.c.
Referenced by init_bloom_shader(), render_to_cubemap_face(), and SHADERS_INIT().
|
extern |
Definition at line 113 of file main.c.
Referenced by init_bloom_shader(), and SHADERS_INIT().
|
extern |
Definition at line 308 of file main.c.
Referenced by init_dof_shader(), render_to_cubemap_face(), and SHADERS_INIT().
|
extern |
Definition at line 125 of file main.c.
Referenced by init_bloom_shader(), render_to_cubemap_face(), and SHADERS_INIT().
|
extern |
Definition at line 126 of file main.c.
Referenced by init_bloom_shader(), render_to_cubemap_face(), and SHADERS_INIT().
|
extern |
render/wireframe.vert render/wireframe.frag
Definition at line 118 of file main.c.
Referenced by init_globals(), init_wireframe_shader(), render(), and SHADERS_INIT().
|
extern |
Definition at line 129 of file main.c.
Referenced by init(), init_brdf_shader(), and SHADERS_INIT().
|
extern |
Definition at line 131 of file main.c.
Referenced by init_globals(), init_text_shader(), render(), and SHADERS_INIT().
|
extern |
Definition at line 132 of file main.c.
Referenced by init_ui_shader(), render(), and SHADERS_INIT().
|
extern |
render/postprocess.vert render/postprocess.frag
Definition at line 119 of file main.c.
Referenced by init_globals(), init_postprocess_shader(), render(), and SHADERS_INIT().
|
extern |
Definition at line 272 of file main.c.
Referenced by init_postprocess_shader(), render(), and SHADERS_INIT().
|
extern |
Definition at line 216 of file main.c.
Referenced by bake_lightmap(), and init().
|
extern |
Definition at line 306 of file main.c.
Referenced by bake_reflection_probes(), and init().
|
extern |
Definition at line 99 of file main.c.
Referenced by init(), render(), and render_to_cubemap_face().
|
extern |
Definition at line 307 of file main.c.
Referenced by bind_dynamic_shader(), init(), and write_point_light_shadows().
|
extern |
Definition at line 93 of file main.c.
Referenced by allocate_gbuffer(), allocate_gbuffer_msaa(), change_render_resolution(), init(), render_main_menu(), and render_to_cubemap_face().
|
extern |
Definition at line 94 of file main.c.
Referenced by allocate_gbuffer(), allocate_gbuffer_msaa(), change_render_resolution(), init(), render(), render_main_menu(), and render_to_cubemap_face().
|
extern |
Definition at line 95 of file main.c.
Referenced by bind_dynamic_shader(), init(), render(), and render_to_cubemap_face().
|
extern |
|
extern |
Definition at line 97 of file main.c.
Referenced by change_ssao_res(), init(), render_main_menu(), and render_to_cubemap_face().
|
extern |
Definition at line 98 of file main.c.
Referenced by bind_dynamic_shader(), change_ssao_res(), init(), and render_to_cubemap_face().
|
extern |
Definition at line 100 of file main.c.
Referenced by change_dof_res(), init(), render(), render_main_menu(), and render_to_cubemap_face().
|
extern |
Definition at line 101 of file main.c.
Referenced by change_dof_res(), init(), render(), and render_to_cubemap_face().
|
extern |
Definition at line 92 of file main.c.
Referenced by bind_dynamic_shader(), init(), render_to_cubemap_face(), and update_light_camera().
|
extern |
Definition at line 90 of file main.c.
Referenced by allocate_main_fbo(), change_render_resolution(), init(), render(), render_main_menu(), and render_to_cubemap_face().
|
extern |
Definition at line 91 of file main.c.
Referenced by allocate_main_fbo(), change_render_resolution(), init(), render(), render_main_menu(), and render_to_cubemap_face().
|
extern |
Definition at line 102 of file main.c.
Referenced by change_bloom_res(), init(), render(), render_main_menu(), and render_to_cubemap_face().
|
extern |
Definition at line 275 of file main.c.
Referenced by change_render_resolution(), init(), and render_to_cubemap_face().
|
extern |
Definition at line 150 of file main.c.
Referenced by init(), upload_bake_lights_gpu(), and upload_lights().
|
extern |
Definition at line 151 of file main.c.
Referenced by bind_render_ssbos(), determine_light_visibility_per_mesh(), and init().
|
extern |
Definition at line 153 of file main.c.
Referenced by add_all_meshes_to_buffer(), bind_render_ssbos(), and init().
|
extern |
Vertices: vec4 (x, y, z, padding) or just float arrays.
(Don't forget you also need vertex Normals and UVs so your ray hits can sample textures!).
Definition at line 154 of file main.c.
Referenced by bind_baking_ssbos(), GPU_upload_scene_data(), and init().
|
extern |
Indices (Tris): uvec3 for triangle lookups.
Definition at line 155 of file main.c.
Referenced by bind_baking_ssbos(), GPU_upload_scene_data(), and init().
|
extern |
Instances (Transforms): Needs the Model Matrix, Inverse Model Matrix (crucial for transforming rays into local mesh space), and the underlying Mesh ID.
Definition at line 156 of file main.c.
Referenced by bind_baking_ssbos(), GPU_upload_scene_data(), and init().
|
extern |
Mesh BVH Nodes: Flattened array of nodes.
Must contain AABB min/max, left child index, right child index, and triangle count/offset.
Definition at line 157 of file main.c.
Referenced by bind_baking_ssbos(), GPU_upload_scene_data(), and init().
|
extern |
Scene BVH Nodes (TLAS): Same structure as above, but pointing to instances instead of triangles.
Definition at line 158 of file main.c.
Referenced by bind_baking_ssbos(), GPU_upload_scene_data(), and init().
|
extern |
Material Data: Roughness, emission multipliers, albedo colors for each instance.
Definition at line 152 of file main.c.
Referenced by bind_render_ssbos(), init(), and upload_material_data().
|
extern |
Definition at line 159 of file main.c.
Referenced by bake_lighting_probe_volume(), bind_baking_ssbos(), and init().
|
extern |
Definition at line 160 of file main.c.
Referenced by bake_audio_probe_volume(), bake_reflection_probes(), bind_baking_ssbos(), bind_render_ssbos(), init(), and unbind_baking_ssbos().
|
extern |
Definition at line 161 of file main.c.
Referenced by bind_render_ssbos(), init(), unbind_baking_ssbos(), and upload_joint_matrices().
|
extern |
Definition at line 162 of file main.c.
Referenced by bind_render_ssbos(), and init().
|
extern |
Definition at line 163 of file main.c.
Referenced by bind_render_ssbos(), and init().
|
extern |
Definition at line 164 of file main.c.
Referenced by bind_render_ssbos(), and init().
|
extern |
Definition at line 165 of file main.c.
Referenced by bind_render_ssbos(), init(), and upload_instance_data().
|
extern |
Definition at line 166 of file main.c.
Referenced by bake_audio_probe_volume(), bind_render_ssbos(), init(), render_to_cubemap_face(), and unbind_baking_ssbos().
|
extern |
Definition at line 167 of file main.c.
Referenced by bind_render_ssbos(), init(), render_to_cubemap_face(), unbind_baking_ssbos(), upload_instance_data(), and write_point_light_shadows().
|
extern |
Definition at line 168 of file main.c.
Referenced by draw_arrays_elements(), init(), render_to_cubemap_face(), and write_point_light_shadows().
|
extern |
Definition at line 169 of file main.c.
Referenced by bind_render_ssbos(), init(), render_to_cubemap_face(), unbind_baking_ssbos(), upload_instance_data(), and write_point_light_shadows().
|
extern |
Definition at line 170 of file main.c.
Referenced by draw_arrays_elements(), init(), render_to_cubemap_face(), and write_point_light_shadows().
|
extern |
Definition at line 171 of file main.c.
Referenced by bake_audio_probe_volume(), bind_render_ssbos(), init(), unbind_baking_ssbos(), and upload_instances().
|
extern |
Definition at line 172 of file main.c.
Referenced by bake_audio_probe_volume(), bind_render_ssbos(), GPU_upload_ui_elements(), init(), and unbind_baking_ssbos().
|
extern |
Definition at line 173 of file main.c.
Referenced by bind_render_ssbos(), GPU_upload_ui_elements(), and init().
|
extern |
Definition at line 187 of file main.c.
Referenced by GPU_upload_scene_data(), and init_globals().
|
extern |
Definition at line 188 of file main.c.
Referenced by GPU_upload_scene_data(), and init_globals().
|
extern |
Definition at line 189 of file main.c.
Referenced by GPU_upload_scene_data(), and init_globals().
|
extern |
Definition at line 190 of file main.c.
Referenced by GPU_upload_scene_data(), and init_globals().
|
extern |
Definition at line 191 of file main.c.
Referenced by GPU_upload_scene_data(), and init_globals().
|
extern |
Definition at line 193 of file main.c.
Referenced by add_all_meshes_to_buffer(), allocate_lightmap_ssbo(), fill_buffer_with_mesh_tri(), fill_vertex_buffer_mesh(), and init_globals().
|
extern |
Definition at line 194 of file main.c.
Referenced by upload_material_data().
|
extern |
|
extern |
|
extern |
Definition at line 281 of file main.c.
Referenced by clip_manifold(), ray_traverse_scene_bvh(), render(), render_mesh_aabbs_from_root(), render_probe_volume(), and update_physics_components().
|
extern |
Definition at line 282 of file main.c.
Referenced by clip_manifold(), main(), process_probe_chunk(), ray_traverse_scene_bvh(), render(), render_mesh_aabbs_from_root(), render_probe_volume(), and update_physics_components().
|
extern |
|
extern |
Definition at line 507 of file main.c.
Referenced by main(), and render_to_cubemap_face().
|
extern |
Definition at line 508 of file main.c.
Referenced by main(), and render_to_cubemap_face().
|
extern |
Definition at line 509 of file main.c.
Referenced by main(), and render_to_cubemap_face().
|
extern |
Definition at line 511 of file main.c.
Referenced by main(), and render_to_cubemap_face().
|
extern |
Definition at line 512 of file main.c.
Referenced by main(), and render_to_cubemap_face().
|
extern |
Definition at line 513 of file main.c.
Referenced by main(), and render_to_cubemap_face().
|
extern |
Definition at line 514 of file main.c.
Referenced by main(), and render_to_cubemap_face().
|
extern |
Definition at line 515 of file main.c.
Referenced by main(), and render_to_cubemap_face().
|
extern |
Definition at line 516 of file main.c.
Referenced by main(), and render_to_cubemap_face().
|
extern |
Definition at line 510 of file main.c.
Referenced by main(), and render_to_cubemap_face().
|
extern |
Definition at line 517 of file main.c.
Referenced by main(), render(), and render_to_cubemap_face().
|
extern |
Definition at line 284 of file main.c.
Referenced by init_globals(), and render_main_menu().
|
extern |
Definition at line 285 of file main.c.
Referenced by init_globals(), and render_main_menu().
|
extern |
|
extern |
Definition at line 332 of file main.c.
Referenced by init(), main(), and render_to_cubemap_face().
|
extern |
Definition at line 333 of file main.c.
Referenced by init(), main(), and render_to_cubemap_face().
|
extern |
Definition at line 335 of file main.c.
Referenced by init(), and render_to_cubemap_face().
|
extern |
Definition at line 336 of file main.c.
Referenced by init(), and render_to_cubemap_face().
|
extern |
Definition at line 338 of file main.c.
Referenced by init(), and render_to_cubemap_face().
|
extern |
Definition at line 339 of file main.c.
Referenced by init(), and render_to_cubemap_face().
|
extern |
Definition at line 341 of file main.c.
Referenced by init(), and render_to_cubemap_face().
|
extern |
Definition at line 342 of file main.c.
Referenced by init(), and render_to_cubemap_face().
|
extern |
Definition at line 344 of file main.c.
Referenced by init(), upload_bake_lights_gpu(), and upload_lights().
|
extern |
Definition at line 345 of file main.c.
Referenced by init(), upload_bake_lights_gpu(), and upload_lights().
|
extern |
Definition at line 347 of file main.c.
Referenced by determine_light_visibility_per_mesh(), and init().
|
extern |
Definition at line 348 of file main.c.
Referenced by determine_light_visibility_per_mesh(), and init().
|
extern |
Definition at line 350 of file main.c.
Referenced by init(), and upload_joint_matrices().
|
extern |
Definition at line 351 of file main.c.
Referenced by init(), and upload_joint_matrices().
|
extern |
Definition at line 354 of file main.c.
Referenced by init(), and render_to_cubemap_face().
|
extern |
Definition at line 358 of file main.c.
Referenced by init(), and upload_instance_data().
|
extern |
Definition at line 359 of file main.c.
Referenced by init(), and upload_instance_data().
|
extern |
Definition at line 361 of file main.c.
Referenced by init(), and upload_instance_data().
|
extern |
|
extern |
Definition at line 367 of file main.c.
Referenced by init(), and upload_instance_data().
|
extern |
|
extern |
Definition at line 374 of file main.c.
Referenced by init(), and upload_instances().
|
extern |
Definition at line 375 of file main.c.
Referenced by init(), and upload_instances().
|
extern |
Definition at line 371 of file main.c.
Referenced by GPU_upload_ui_elements(), and init().
|
extern |
Definition at line 372 of file main.c.
Referenced by GPU_upload_ui_elements(), and init().
|
extern |
Definition at line 379 of file main.c.
Referenced by GPU_upload_ui_elements(), and init().
|
extern |
Definition at line 380 of file main.c.
Referenced by GPU_upload_ui_elements(), and init().
|
extern |
|
extern |
Definition at line 385 of file main.c.
Referenced by GPU_upload_ui_elements(), and init().
|
extern |
Definition at line 386 of file main.c.
Referenced by GPU_upload_ui_elements(), and init().
|
extern |
Definition at line 259 of file main.c.
Referenced by render_all_draw_commands(), render_to_cubemap_face(), and upload_instances().
|
extern |
Definition at line 260 of file main.c.
Referenced by render_all_draw_commands(), render_to_cubemap_face(), and upload_instances().
|
extern |
|
extern |
Definition at line 312 of file main.c.
Referenced by create_entity(), execute_light_undo(), init_globals(), main(), read_mesh_node(), render_editor_menu(), render_entity_menu(), render_light_menu(), scene_load(), scene_save(), and update_entities().
|
extern |
Definition at line 313 of file main.c.
Referenced by destroy_asset_instance(), execute_asset_instance_undo(), find_animation(), init_globals(), init_new_asset_instance(), play_animation(), render_asset_instance_menu(), scene_load(), scene_save(), update_scene_nodes(), update_skin_matrices(), and upload_joint_matrices().
|
extern |
Definition at line 314 of file main.c.
Referenced by create_physics_component(), init_globals(), init_player(), read_mesh_node(), scene_load(), scene_save(), and update_physics_components().
|
extern |
Definition at line 270 of file main.c.
Referenced by create_new_manifold(), find_manifold_for_pair(), init_globals(), and update_physics_components().
|
extern |
Definition at line 315 of file main.c.
Referenced by create_animation_component(), init_globals(), scene_load(), scene_save(), and update_animation_components().
| Light default_light |
Definition at line 456 of file init.h.
Referenced by render_light_menu().