aboutsummaryrefslogtreecommitdiff
path: root/src/Rendering/Texture.h
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2025-08-22 12:24:05 +0200
committerhachem <im@hachem.wtf>2025-08-22 12:24:05 +0200
commit0d819f2b9a71e862bce8799c6b0c1304e62219b3 (patch)
treea3011c8f5b04c98de5a8a24bc2b4ded312de958e /src/Rendering/Texture.h
parentc20a400e620154f0c334fe0a37d547625b6ee65b (diff)
[add]: add HDRI
Diffstat (limited to 'src/Rendering/Texture.h')
-rw-r--r--src/Rendering/Texture.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Rendering/Texture.h b/src/Rendering/Texture.h
index 21941ee..3e53b2d 100644
--- a/src/Rendering/Texture.h
+++ b/src/Rendering/Texture.h
@@ -31,4 +31,12 @@ namespace Donut
static Ref<Texture2D> Create(uint32_t width, uint32_t height);
static Ref<Texture2D> Create(const std::string& path);
};
+
+ class CubemapTexture
+ : public Texture
+ {
+ public:
+ static Ref<CubemapTexture> Create(uint32_t width, uint32_t height);
+ static Ref<CubemapTexture> CreateFromHDRI(const std::string& path);
+ };
}; \ No newline at end of file