Improve layered texture preview
This commit is contained in:
parent
96be44c0ec
commit
e0f30d30e2
7 changed files with 274 additions and 123 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue