#include "app_settings.h"
#include "billboard_rendering.h"
#include "gl_common.h"
#include "gpu_profiler.h"
#include "ibl_coordinator.h"
#include "icosphere.h"
#include "instanced_rendering.h"
#include "light_probes.h"
#include "material.h"
#include "shader.h"
#include "skybox.h"
#include "sphere_sorting.h"
#include <cglm/cglm.h>
Go to the source code of this file.
◆ anonymous enum
| Enumerator |
|---|
| IBL_TEXTURE_COUNT | |
◆ anonymous enum
| Enumerator |
|---|
| TEXTURE_UNIT_IBL_START | |
◆ anonymous enum
| Enumerator |
|---|
| MAT4_FLOAT_COUNT | |
◆ AAMode
Specular Anti-Aliasing modes.
| Enumerator |
|---|
| AA_MODE_SCREEN_SPACE | |
| AA_MODE_CURVATURE | |
| AA_MODE_COUNT | |
◆ GIMode
Global Illumination sampling methods.
| Enumerator |
|---|
| GI_MODE_OFF | |
| GI_MODE_3D_TEX | |
| GI_MODE_SSBO | |
| GI_MODE_COUNT | |
◆ SortingMode
Sorting algorithms for transparent billboards.
| Enumerator |
|---|
| SORTING_MODE_CPU_QSORT | |
| SORTING_MODE_CPU_RADIX | |
| SORTING_MODE_GPU_BITONIC | |
| SORTING_MODE_COUNT | Sentinel — must remain last.
|
◆ _Static_assert()
| _Static_assert |
( |
_Alignof(BillboardUBO) >= |
GL_UBO_ALIGNMENT, |
|
|
"BillboardUBO" " must be >= 32-byte aligned for AVX (cglm)" |
|
|
) |
| |
◆ aa_mode_to_string()
| const char* aa_mode_to_string |
( |
AAMode |
mode | ) |
|
Returns a string representation of the AA mode.
- Parameters
-
- Returns
- String representation.
◆ scene_cleanup()
| void scene_cleanup |
( |
Scene * |
scene | ) |
|
Cleans up scene resources.
- Parameters
-
| scene | Pointer to the scene structure. |
◆ scene_init()
| int scene_init |
( |
Scene * |
scene | ) |
|
Initializes the scene resources.
- Parameters
-
| scene | Pointer to the scene structure. |
- Returns
- 1 on success, 0 on failure.
◆ scene_render()
| void scene_render |
( |
Scene * |
scene, |
|
|
GPUProfiler * |
profiler, |
|
|
mat4 |
view, |
|
|
mat4 |
proj, |
|
|
vec3 |
camera_pos, |
|
|
mat4 |
previous_view_proj, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
Renders the scene.
- Parameters
-
| scene | Pointer to the scene. |
| view | View matrix. |
| proj | Projection matrix. |
| camera_pos | Camera position. |
| previous_view_proj | Previous frame's ViewProj matrix (for motion blur). |
| width | Viewport width. |
| height | Viewport height. |
◆ scene_update_gpu_buffers()
| void scene_update_gpu_buffers |
( |
Scene * |
scene | ) |
|
Updates GPU buffers for dynamic geometry (e.g. LOD changes).
- Parameters
-
| scene | Pointer to the scene. |