Flashlight and basic character controls
This commit is contained in:
parent
70d322e276
commit
3832a05c1b
16 changed files with 258 additions and 4 deletions
7
shaders/light_shader.gdshader
Normal file
7
shaders/light_shader.gdshader
Normal 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);
|
||||
}
|
6
shaders/light_shader_material.tres
Normal file
6
shaders/light_shader_material.tres
Normal 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")
|
Loading…
Add table
Add a link
Reference in a new issue