Texture refactor
-Texture renamed to Texture2D -TextureLayered as base now inherits 2Darray, cubemap and cubemap array -Removed all references to flags in textures (they will go in the shader) -Texture3D gone for now (will come back later done properly) -Create base rasterizer for RenderDevice, RasterizerRD
This commit is contained in:
parent
9ffe57a10e
commit
3f335ce3d4
287 changed files with 2829 additions and 2540 deletions
|
|
@ -167,7 +167,7 @@ void SpriteEditor::_menu_option(int p_option) {
|
|||
|
||||
void SpriteEditor::_update_mesh_data() {
|
||||
|
||||
Ref<Texture> texture = node->get_texture();
|
||||
Ref<Texture2D> texture = node->get_texture();
|
||||
if (texture.is_null()) {
|
||||
err_dialog->set_text(TTR("Sprite is empty!"));
|
||||
err_dialog->popup_centered_minsize();
|
||||
|
|
@ -476,7 +476,7 @@ void SpriteEditor::_add_as_sibling_or_child(Node *p_own_node, Node *p_new_node)
|
|||
|
||||
void SpriteEditor::_debug_uv_draw() {
|
||||
|
||||
Ref<Texture> tex = node->get_texture();
|
||||
Ref<Texture2D> tex = node->get_texture();
|
||||
ERR_FAIL_COND(!tex.is_valid());
|
||||
|
||||
Point2 draw_pos_offset = Point2(1.0, 1.0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue