1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-23 22:13:14 +00:00
Pixelorama/src/UI/Canvas/CanvasPreview.tscn
Emmanouil Papadeas 8de9697be0
Layer blend modes (#911)
* Preview blend modes

No support for exporting and layer merging yet. Also need to fix the move tool preview.

* Preview blend modes on tile mode

* Raise layer limit to 1024

* Export images with layer blending modes

* Save blend modes in pxo files

* Merge layers with blending modes

* Fix crash when adding a new layer

* Preview blending in the other canvases

* Update DrawingAlgos.gd

* Move tool preview

* Re-arrange blend menu and add lighten, darken, linear burn and exclusion

* Add divide blend mode

* Add hue, saturation, color & luminosity blend modes

* Undo/redo when changing blend modes
2023-10-22 01:57:45 +03:00

17 lines
660 B
Text

[gd_scene load_steps=4 format=3 uid="uid://c546tskdu53j1"]
[ext_resource type="Script" path="res://src/UI/Canvas/CanvasPreview.gd" id="1"]
[ext_resource type="Shader" path="res://src/Shaders/BlendLayers.gdshader" id="1_28j41"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_21d5l"]
shader = ExtResource("1_28j41")
shader_parameter/opacities = null
shader_parameter/blend_modes = null
[node name="CanvasPreview" type="Node2D"]
material = SubResource("ShaderMaterial_21d5l")
script = ExtResource("1")
[node name="AnimationTimer" type="Timer" parent="."]
[connection signal="timeout" from="AnimationTimer" to="." method="_on_AnimationTimer_timeout"]