Add resolution-independent pixelation

This commit is contained in:
Alexander Sellite 2026-07-27 23:45:11 -04:00
parent 46175ee405
commit 6f51f91324
10 changed files with 220 additions and 33 deletions

View file

@ -0,0 +1,21 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="Script" path="res://main/world_pixelation_postprocess.gd" id="1_script"]
[ext_resource type="Shader" path="res://main/world_pixelation_postprocess.gdshader" id="2_shader"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_world_pixelation"]
shader = ExtResource("2_shader")
[node name="WorldPixelationPostprocess" type="CanvasLayer"]
layer = -1
script = ExtResource("1_script")
[node name="ScreenGrid" type="ColorRect" parent="."]
unique_name_in_owner = true
material = SubResource("ShaderMaterial_world_pixelation")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2