![]() |
Path Tracing
|
Uploads CPU-decoded texture arrays. Has no knowledge of ASSIMP or the format of the model's source file - that's on mesh.hpp. More...


Go to the source code of this file.
Functions | |
| bool | loadEnvMap (const std::string &path, Renderer &r) |
| Loads an HDRI map and uploads it as a GPU texture. | |
| bool | uploadTexture (const vector< CPUMaterial > &cpu_materials, vector< GPUMaterial > &gpu_materials, Renderer &r) |
| Builds the material texture array from the loaded materials. Uploads every material texture into a GPU texture array, and patches each GPUMaterial::tex_index to point at its layer. | |
Uploads CPU-decoded texture arrays. Has no knowledge of ASSIMP or the format of the model's source file - that's on mesh.hpp.
| bool loadEnvMap | ( | const std::string & | path, |
| Renderer & | r ) |
Loads an HDRI map and uploads it as a GPU texture.
| path | Path to the HDRI file (.hdr, .exr) |
| r | Renderer to pass env map |
| bool uploadTexture | ( | const vector< CPUMaterial > & | cpu_materials, |
| vector< GPUMaterial > & | gpu_materials, | ||
| Renderer & | r ) |
Builds the material texture array from the loaded materials. Uploads every material texture into a GPU texture array, and patches each GPUMaterial::tex_index to point at its layer.
| cpu_materials | CPU-sided material data, with texture sources |
| gpu_materials | In-out GPU material |
| renderer | Renderer to pass the resulting array |