Merge pull request #92540 from BlueCube3310/layered-texture-info

Improve layered texture preview
This commit is contained in:
Rémi Verschelde
2024-08-26 23:28:19 +02:00
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;