Restructured screen shaders in node tree

This commit is contained in:
ChaoticByte 2024-10-03 11:18:33 +02:00
parent baf7fdc069
commit 6183206f88
No known key found for this signature in database
5 changed files with 43 additions and 35 deletions

View file

@ -0,0 +1,19 @@
[gd_scene load_steps=4 format=3 uid="uid://jmy11lqcs4c"]
[ext_resource type="Shader" path="res://core/shaders/distortion/distortion_shader.gdshader" id="1_4skfc"]
[ext_resource type="Texture2D" uid="uid://bwlgypt4xjocj" path="res://core/shaders/vignette_mask.tres" id="2_add6c"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_gsqgo"]
shader = ExtResource("1_4skfc")
shader_parameter/vignette_mask = ExtResource("2_add6c")
[node name="DistortionShader" type="CanvasLayer"]
editor_description = "Distortion effects"
[node name="ColorRect" type="ColorRect" parent="."]
material = SubResource("ShaderMaterial_gsqgo")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2

View file

@ -0,0 +1,19 @@
[gd_scene load_steps=3 format=3 uid="uid://dxp3dru2lrv6h"]
[ext_resource type="Shader" path="res://core/shaders/outline/outline_shader.gdshader" id="1_27aro"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_myg35"]
shader = ExtResource("1_27aro")
[node name="OutlineShader" type="CanvasLayer"]
editor_description = "Outline & glow"
[node name="ColorRect" type="ColorRect" parent="."]
material = SubResource("ShaderMaterial_myg35")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0, 0, 1)
metadata/_edit_use_anchors_ = true