diff --git a/src/Classes/Layers/GroupLayer.gd b/src/Classes/Layers/GroupLayer.gd index 49d2b7928..6ce3f3410 100644 --- a/src/Classes/Layers/GroupLayer.gd +++ b/src/Classes/Layers/GroupLayer.gd @@ -18,7 +18,7 @@ func blend_children(frame: Frame, origin := Vector2i.ZERO, apply_effects := true if children.size() <= 0: return image var textures: Array[Image] = [] - var metadata_image := Image.create(children.size(), 4, false, Image.FORMAT_RG8) + var metadata_image := Image.create(children.size(), 4, false, Image.FORMAT_RGF) var current_child_index := 0 for i in children.size(): var layer := children[i] diff --git a/src/UI/Canvas/Canvas.gd b/src/UI/Canvas/Canvas.gd index 79694f977..938cf3d40 100644 --- a/src/UI/Canvas/Canvas.gd +++ b/src/UI/Canvas/Canvas.gd @@ -158,7 +158,7 @@ func draw_layers(force_recreate := false) -> void: # Nx4 texture, where N is the number of layers and the first row are the blend modes, # the second are the opacities, the third are the origins and the fourth are the # clipping mask booleans. - layer_metadata_image = Image.create(project.layers.size(), 4, false, Image.FORMAT_RG8) + layer_metadata_image = Image.create(project.layers.size(), 4, false, Image.FORMAT_RGF) # Draw current frame layers for i in project.layers.size(): var layer := project.layers[i]