mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-19 09:39:48 +00:00
e6aea97f1b
A "CanvasPreview" Node2D has been added to every preview viewport, where it draws the current frame. This solves #205.
18 lines
542 B
Plaintext
18 lines
542 B
Plaintext
[gd_scene load_steps=4 format=2]
|
|
|
|
[ext_resource path="res://src/Shaders/TransparentChecker.shader" type="Shader" id=1]
|
|
[ext_resource path="res://src/UI/TransparentChecker.gd" type="Script" id=2]
|
|
|
|
[sub_resource type="ShaderMaterial" id=1]
|
|
shader = ExtResource( 1 )
|
|
shader_param/size = 10.0
|
|
shader_param/color1 = Color( 0.7, 0.7, 0.7, 1 )
|
|
shader_param/color2 = Color( 1, 1, 1, 1 )
|
|
|
|
[node name="TransparentChecker" type="ColorRect"]
|
|
material = SubResource( 1 )
|
|
margin_right = 40.0
|
|
margin_bottom = 40.0
|
|
mouse_filter = 2
|
|
script = ExtResource( 2 )
|