Flashlight and basic character controls

This commit is contained in:
Иван Кузьменко 2023-08-14 23:46:21 +03:00
parent 70d322e276
commit 3832a05c1b
16 changed files with 258 additions and 4 deletions

View file

@ -0,0 +1,7 @@
shader_type canvas_item;
uniform sampler2D screen_texture : hint_screen_texture, repeat_disable, filter_nearest;
void fragment() {
COLOR = vec4(vec3(1,1,1) - texture(screen_texture, SCREEN_UV).rgb, 1);
}

View file

@ -0,0 +1,6 @@
[gd_resource type="ShaderMaterial" load_steps=2 format=3 uid="uid://xuvxq5hy1dt"]
[ext_resource type="Shader" path="res://shaders/light_shader.gdshader" id="1_o757w"]
[resource]
shader = ExtResource("1_o757w")