17#ifndef GRAPHICS_GSKYBOX_H_
18#define GRAPHICS_GSKYBOX_H_
40 unsigned int loadTextures(
const std::vector<std::string>& texturePaths);
46 unsigned int load(
const std::vector<std::string>& fullPaths);
51 void loadFromData(std::array<int, 6> widths, std::array<int, 6> heights, std::array<void*, 6> rawdata, std::array<bool, 6> ishdr);
69 std::array<unsigned int, 6> vkfaceids{};
70 int width, height, nrChannels;
71 void setupRenderData();
74 unsigned int uploadVulkanFace(
int faceWidth,
int faceHeight,
void* pixels,
bool hdr =
false);
77 unsigned int cubeVAO, cubeVBO;
78 unsigned int skyboxVAO, skyboxVBO;
83 int skymapint, skymapslot;
87 gShader* equirectangularToCubemapShader;
92 unsigned int captureFBO;
93 unsigned int captureRBO;
94 unsigned int irradianceMap;
95 unsigned int prefilterMap;
96 unsigned int brdfLUTTexture;
unsigned int load(const std::vector< std::string > &fullPaths)
unsigned int loadTextures(const std::vector< std::string > &texturePaths)
unsigned int loadEquirectangular(const std::string &fullPath)
void loadFromData(std::array< int, 6 > widths, std::array< int, 6 > heights, std::array< void *, 6 > rawdata, std::array< bool, 6 > ishdr)
void loadSkybox(gImage *images)
unsigned int getTextureId() const
unsigned int loadTextureEquirectangular(const std::string &texturePath)
void loadDataSkybox(std::string *data, int width, int height)