Improve layered texture preview

This commit is contained in:
BlueCube3310
2024-05-30 13:53:26 +02:00
parent 96be44c0ec
commit e0f30d30e2
7 changed files with 274 additions and 123 deletions

View File

@ -331,6 +331,10 @@ int NoiseTexture3D::get_depth() const {
return depth;
}
bool NoiseTexture3D::has_mipmaps() const {
return false;
}
RID NoiseTexture3D::get_rid() const {
if (!texture.is_valid()) {
texture = RS::get_singleton()->texture_3d_placeholder_create();

View File

@ -103,6 +103,8 @@ public:
virtual int get_height() const override;
virtual int get_depth() const override;
virtual bool has_mipmaps() const override;
virtual RID get_rid() const override;
virtual Vector<Ref<Image>> get_data() const override;