Configured shader once again
parent
798c3c4fa1
commit
46ad66380d
|
@ -1,9 +1,10 @@
|
|||
[gd_scene load_steps=15 format=4 uid="uid://b88asko1ugyd2"]
|
||||
[gd_scene load_steps=16 format=4 uid="uid://b88asko1ugyd2"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/global/GameManager.gd" id="1_eeg2d"]
|
||||
[ext_resource type="Script" path="res://scripts/tilemap/World.gd" id="1_k0rw8"]
|
||||
[ext_resource type="TileSet" uid="uid://bi836ygcmyvhb" path="res://assets/tilemap/tileset.tres" id="1_vlccq"]
|
||||
[ext_resource type="Script" path="res://scripts/global/CameraController.gd" id="2_k51iv"]
|
||||
[ext_resource type="Material" uid="uid://ckg3be082ny3h" path="res://assets/shader/shader_vignette.tres" id="3_7waul"]
|
||||
[ext_resource type="Script" path="res://scripts/player/PlayerManager.gd" id="4_1xqo1"]
|
||||
[ext_resource type="Script" path="res://scripts/tilemap/StepVisualization.gd" id="5_sr2su"]
|
||||
[ext_resource type="Script" path="res://scripts/player/tree/BehaviorTree.gd" id="6_efs30"]
|
||||
|
@ -25,7 +26,7 @@ script = ExtResource("2_k51iv")
|
|||
[node name="CanvasLayer" type="CanvasLayer" parent="Camera2D"]
|
||||
|
||||
[node name="Vignette" type="ColorRect" parent="Camera2D/CanvasLayer"]
|
||||
visible = false
|
||||
material = ExtResource("3_7waul")
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
|
|
|
@ -128,6 +128,7 @@ func _process(delta):
|
|||
var offset: Vector2 = target_position - position
|
||||
position += offset
|
||||
|
||||
|
||||
# SECTION: shader access
|
||||
|
||||
func set_vignette_intensity(value: float) -> void:
|
||||
|
|
Loading…
Reference in New Issue