Path Tracing
Loading...
Searching...
No Matches
texture.hpp
Go to the documentation of this file.
1
10#include <string>
11#include <vector>
12#include "config.hpp"
13#include "mesh.hpp"
14
20static const int MAX_TEX_SIZE = 2048;
22static const int MIN_TEX_SIZE = 64;
23
30bool loadEnvMap(const std::string& path, Renderer& r);
31
43bool uploadTexture(const vector<CPUMaterial>& cpu_materials, vector<GPUMaterial>& gpu_materials, Renderer& r);
Loads 3D models through ASSIMP into CPU-side geometry and material data, defines the GPUVertex/GPUTri...
Definition config.hpp:159
bool loadEnvMap(const std::string &path, Renderer &r)
Loads an HDRI map and uploads it as a GPU texture.
Definition texture.cpp:11
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 GP...
Definition texture.cpp:190