Add resolution-independent pixelation
This commit is contained in:
parent
46175ee405
commit
6f51f91324
10 changed files with 220 additions and 33 deletions
21
main/world_pixelation_postprocess.tscn
Normal file
21
main/world_pixelation_postprocess.tscn
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue