#include "shared/shared.h"
#include "refresh/refresh.h"
Go to the source code of this file.
Classes | |
struct | pbr_material_s |
Macros | |
#define | MAX_PBR_MATERIALS 4096 |
Typedefs | |
typedef struct image_s | image_t |
typedef struct pbr_material_s | pbr_material_t |
Functions | |
int | MAT_GetPBRMaterialIndex (pbr_material_t const *mat) |
qerror_t | MAT_RegisterPBRMaterial (pbr_material_t *mat, image_t *image_diffuse, image_t *image_normals, image_t *image_emissive) |
void | MAT_UpdateRegistration (pbr_material_t *mat) |
const pbr_material_t * | MAT_UpdatePBRMaterialSkin (image_t *image_diffuse) |
qerror_t | MAT_SetPBRMaterialAttribute (pbr_material_t *mat, char const *token, char const *value) |
qerror_t | MAT_InitializePBRmaterials () |
qerror_t | MAT_ResetUnused () |
const pbr_material_t * | MAT_GetPBRMaterialsTable () |
int | MAT_GetNumPBRMaterials () |
pbr_material_t * | MAT_GetPBRMaterial (int index) |
pbr_material_t * | MAT_FindPBRMaterial (char const *name) |
qerror_t | MAT_ReloadPBRMaterials () |
qerror_t | MAT_SavePBRMaterials () |
void | MAT_PrintMaterialProperties (pbr_material_t const *mat) |
uint32_t | MAT_SetKind (uint32_t material, uint32_t kind) |
qboolean | MAT_IsKind (uint32_t material, uint32_t kind) |
#define MAX_PBR_MATERIALS 4096 |
Definition at line 25 of file material.h.
typedef struct image_s image_t |
Definition at line 27 of file material.h.
typedef struct pbr_material_s pbr_material_t |
pbr_material_t* MAT_FindPBRMaterial | ( | char const * | name | ) |
Definition at line 465 of file material.c.
Referenced by bsp_mesh_register_textures(), MAT_UpdatePBRMaterialSkin(), MOD_LoadMD2_RTX(), vkpt_print_material(), and vkpt_set_material().
int MAT_GetNumPBRMaterials | ( | ) |
pbr_material_t* MAT_GetPBRMaterial | ( | int | index | ) |
Definition at line 457 of file material.c.
Referenced by compute_world_tangents(), and process_render_feedback().
int MAT_GetPBRMaterialIndex | ( | pbr_material_t const * | mat | ) |
Definition at line 149 of file material.c.
const pbr_material_t* MAT_GetPBRMaterialsTable | ( | ) |
Definition at line 139 of file material.c.
Referenced by vkpt_light_buffer_upload_to_staging().
qerror_t MAT_InitializePBRmaterials | ( | ) |
Definition at line 341 of file material.c.
Referenced by R_Init_RTX().
qboolean MAT_IsKind | ( | uint32_t | material, |
uint32_t | kind | ||
) |
Definition at line 665 of file material.c.
Referenced by bsp_mesh_register_textures(), collect_sky_and_lava_ligth_polys(), collect_surfaces(), create_poly(), fill_model_instance(), filter_all(), filter_static_sky(), is_model_transparent(), is_sky_or_lava_cluster(), and is_transparent_material().
void MAT_PrintMaterialProperties | ( | pbr_material_t const * | mat | ) |
Definition at line 549 of file material.c.
Referenced by vkpt_print_material().
qerror_t MAT_RegisterPBRMaterial | ( | pbr_material_t * | mat, |
image_t * | image_diffuse, | ||
image_t * | image_normals, | ||
image_t * | image_emissive | ||
) |
Definition at line 397 of file material.c.
Referenced by bsp_mesh_register_textures(), and MOD_LoadMD2_RTX().
qerror_t MAT_ReloadPBRMaterials | ( | ) |
Definition at line 347 of file material.c.
Referenced by vkpt_reload_materials().
qerror_t MAT_ResetUnused | ( | ) |
qerror_t MAT_SavePBRMaterials | ( | ) |
Definition at line 391 of file material.c.
Referenced by vkpt_save_materials().
uint32_t MAT_SetKind | ( | uint32_t | material, |
uint32_t | kind | ||
) |
Definition at line 660 of file material.c.
Referenced by collect_surfaces(), fill_model_instance(), MAT_SetPBRMaterialAttribute(), and parseMaterialsTable().
qerror_t MAT_SetPBRMaterialAttribute | ( | pbr_material_t * | mat, |
char const * | token, | ||
char const * | value | ||
) |
Definition at line 570 of file material.c.
Referenced by vkpt_set_material().
const pbr_material_t* MAT_UpdatePBRMaterialSkin | ( | image_t * | image_diffuse | ) |
void MAT_UpdateRegistration | ( | pbr_material_t * | mat | ) |