Restructured screen shaders in node tree
This commit is contained in:
parent
baf7fdc069
commit
6183206f88
5 changed files with 43 additions and 35 deletions
19
core/shaders/distortion/distortion_canvas_layer.tscn
Normal file
19
core/shaders/distortion/distortion_canvas_layer.tscn
Normal 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
|
19
core/shaders/outline/outline_canvas_layer.tscn
Normal file
19
core/shaders/outline/outline_canvas_layer.tscn
Normal 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
|
Reference in a new issue