调整光效
parent
beb01f0ea4
commit
a20256cebd
@ -0,0 +1,22 @@
|
|||||||
|
shader_type spatial;
|
||||||
|
|
||||||
|
render_mode blend_add,unshaded,depth_test_disabled;
|
||||||
|
|
||||||
|
uniform sampler2D noise;
|
||||||
|
uniform sampler2D tex_mask : source_color;
|
||||||
|
uniform float distortionView : hint_range(0.0, 0.3, 0.005) = 0.03;
|
||||||
|
uniform float speedView : hint_range(0.0, 1.0, 0.005) = 0.5;
|
||||||
|
uniform sampler2D screenTexture : hint_screen_texture;
|
||||||
|
|
||||||
|
void fragment()
|
||||||
|
{
|
||||||
|
vec4 col_mask = texture(tex_mask, UV);
|
||||||
|
|
||||||
|
float noiseValueX = (texture(noise, UV + (TIME * speedView)).r * 2.0) - 1.0; // Range: -1.0 to 1.0
|
||||||
|
float noiseValueY = (texture(noise, UV + (TIME * speedView)).r * 2.0) - 1.0; // Range: -1.0 to 1.0
|
||||||
|
vec2 noiseDistort = vec2(noiseValueX, noiseValueY) * distortionView * col_mask.r;;
|
||||||
|
vec3 distortedScreenTexture = vec3(texture(screenTexture, SCREEN_UV + noiseDistort).rgb);
|
||||||
|
|
||||||
|
ALBEDO = distortedScreenTexture;
|
||||||
|
ALPHA = col_mask.r * COLOR.a;
|
||||||
|
}
|
||||||
Binary file not shown.
@ -0,0 +1,18 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="MagicaVoxel.With.Extensions.To.Mesh"
|
||||||
|
type="Mesh"
|
||||||
|
uid="uid://cd3smnhcr7257"
|
||||||
|
path="res://.godot/imported/n_flower1.vox-1301f62d7d0dcd07b6ae652a7e3e57ba.mesh"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://resource/mesh_level/n_flower1.vox"
|
||||||
|
dest_files=["res://.godot/imported/n_flower1.vox-1301f62d7d0dcd07b6ae652a7e3e57ba.mesh"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
Scale=0.02
|
||||||
|
GreedyMeshGenerator=true
|
||||||
|
SnapToGround=false
|
||||||
|
FirstKeyframeOnly=true
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="MagicaVoxel.With.Extensions.To.Mesh"
|
||||||
|
type="Mesh"
|
||||||
|
uid="uid://ceg2pppm13tcq"
|
||||||
|
path="res://.godot/imported/n_stone_path.vox-56d7f22717a90eecf159f9b753aab4a1.mesh"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://resource/mesh_level/n_stone_path.vox"
|
||||||
|
dest_files=["res://.godot/imported/n_stone_path.vox-56d7f22717a90eecf159f9b753aab4a1.mesh"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
Scale=0.02
|
||||||
|
GreedyMeshGenerator=true
|
||||||
|
SnapToGround=false
|
||||||
|
FirstKeyframeOnly=true
|
||||||
Binary file not shown.
@ -0,0 +1,18 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="MagicaVoxel.With.Extensions.To.Mesh"
|
||||||
|
type="Mesh"
|
||||||
|
uid="uid://b0fvoh82l42cw"
|
||||||
|
path="res://.godot/imported/n_stone_path1.vox-76d8f4517dcdeaf7a33bf7645dda9765.mesh"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://resource/mesh_level/n_stone_path1.vox"
|
||||||
|
dest_files=["res://.godot/imported/n_stone_path1.vox-76d8f4517dcdeaf7a33bf7645dda9765.mesh"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
Scale=0.02
|
||||||
|
GreedyMeshGenerator=true
|
||||||
|
SnapToGround=false
|
||||||
|
FirstKeyframeOnly=true
|
||||||
Binary file not shown.
@ -0,0 +1,18 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="MagicaVoxel.With.Extensions.To.Mesh"
|
||||||
|
type="Mesh"
|
||||||
|
uid="uid://4nppyw3eiy0q"
|
||||||
|
path="res://.godot/imported/n_stone_path2.vox-2a35713c00bb18d93a12781957483819.mesh"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://resource/mesh_level/n_stone_path2.vox"
|
||||||
|
dest_files=["res://.godot/imported/n_stone_path2.vox-2a35713c00bb18d93a12781957483819.mesh"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
Scale=0.02
|
||||||
|
GreedyMeshGenerator=true
|
||||||
|
SnapToGround=false
|
||||||
|
FirstKeyframeOnly=true
|
||||||
Binary file not shown.
@ -0,0 +1,18 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="MagicaVoxel.With.Extensions.To.Mesh"
|
||||||
|
type="Mesh"
|
||||||
|
uid="uid://d2m8rngv7wicv"
|
||||||
|
path="res://.godot/imported/n_stone_path3.vox-06d17b68621c2d00616f2149b6010d47.mesh"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://resource/mesh_level/n_stone_path3.vox"
|
||||||
|
dest_files=["res://.godot/imported/n_stone_path3.vox-06d17b68621c2d00616f2149b6010d47.mesh"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
Scale=0.02
|
||||||
|
GreedyMeshGenerator=true
|
||||||
|
SnapToGround=false
|
||||||
|
FirstKeyframeOnly=true
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue