Figments-of-the-Night/prefabs/postprocessing/pixelation.tscn
Gerard Gascón b99855351d init
2025-04-24 17:23:34 +02:00

27 lines
1,023 B
Text

[gd_scene load_steps=5 format=3 uid="uid://djdqsd2jvbu57"]
[ext_resource type="Shader" path="res://scripts/shaders/pixelation.gdshader" id="1_1p5i1"]
[ext_resource type="Texture2D" uid="uid://cdhpjsxkjiypw" path="res://sprites/palette.png" id="2_oabbt"]
[ext_resource type="Texture2D" uid="uid://dnhsenb6116bl" path="res://sprites/palette1.png" id="3_m7d64"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_vv0lw"]
shader = ExtResource("1_1p5i1")
shader_parameter/num_colors = 19
shader_parameter/u_dither_size = 4
shader_parameter/PALETTE_TEXTURE = ExtResource("2_oabbt")
shader_parameter/PALETTE_TEXTURE_LOW = ExtResource("3_m7d64")
[node name="Pixelation" type="BackBufferCopy"]
rect = Rect2(0, 0, 1920, 1080)
[node name="Sprite2D" type="Sprite2D" parent="."]
[node name="ColorRect" type="ColorRect" parent="Sprite2D"]
material = SubResource("ShaderMaterial_vv0lw")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_right = 1919.0
offset_bottom = 1079.0
grow_horizontal = 2
grow_vertical = 2