Irradiance works
This commit is contained in:
@@ -11,8 +11,12 @@ class EnvironmentMapAsset : public Asset {
|
||||
virtual ~EnvironmentMapAsset();
|
||||
virtual void save(ArchiveBuffer& buffer) const override;
|
||||
virtual void load(ArchiveBuffer& buffer) override;
|
||||
Gfx::PTextureCube getSkybox() const { return skybox; }
|
||||
Gfx::PTextureCube getIrradianceMap() const { return irradianceMap; }
|
||||
Gfx::PTextureCube getSpecularMap() const { return specularMap; }
|
||||
private:
|
||||
Gfx::OTextureCube diffuseMap;
|
||||
Gfx::OTextureCube skybox;
|
||||
Gfx::OTextureCube irradianceMap;
|
||||
Gfx::OTextureCube specularMap;
|
||||
friend class EnvironmentLoader;
|
||||
};
|
||||
|
||||
@@ -45,7 +45,6 @@ void TextureAsset::load(ArchiveBuffer& buffer) {
|
||||
.width = ktxHandle->baseWidth,
|
||||
.height = ktxHandle->baseHeight,
|
||||
.depth = ktxHandle->baseDepth,
|
||||
.layers = ktxHandle->numFaces,
|
||||
.elements = ktxHandle->numLayers,
|
||||
.useMip = true,
|
||||
.usage = Gfx::SE_IMAGE_USAGE_SAMPLED_BIT,
|
||||
|
||||
Reference in New Issue
Block a user