Improve layered texture preview
This commit is contained in:
@ -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();
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user