Compare commits
2 Commits
ca9ba8c81f
...
09f9566a0d
| Author | SHA1 | Date | |
|---|---|---|---|
| 09f9566a0d | |||
| 4a371021c1 |
@@ -10,7 +10,7 @@ DEFUp = 0
|
|||||||
LUCKUp = 0.0
|
LUCKUp = 0.0
|
||||||
MaxHPUp = 0
|
MaxHPUp = 0
|
||||||
MaxVTUp = 0
|
MaxVTUp = 0
|
||||||
AccessoryTags = Array[int]([0])
|
AccessoryTags = [0]
|
||||||
Name = "Mask of the Goddess of Destruction"
|
Name = "Mask of the Goddess of Destruction"
|
||||||
Description = "Raises ATK."
|
Description = "Raises ATK."
|
||||||
Texture = ExtResource("1_0p1ot")
|
Texture = ExtResource("1_0p1ot")
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ DEFUp = 1
|
|||||||
LUCKUp = 0.0
|
LUCKUp = 0.0
|
||||||
MaxHPUp = 30
|
MaxHPUp = 30
|
||||||
MaxVTUp = 30
|
MaxVTUp = 30
|
||||||
AccessoryTags = Array[int]([])
|
AccessoryTags = []
|
||||||
Name = "Mask of the Goddess of Guilt"
|
Name = "Mask of the Goddess of Guilt"
|
||||||
Description = "Raises MAX HP, MAX VT, ATK, DEF"
|
Description = "Raises MAX HP, MAX VT, ATK, DEF"
|
||||||
Texture = ExtResource("1_0k42r")
|
Texture = ExtResource("1_0k42r")
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ DEFUp = 3
|
|||||||
LUCKUp = 0.0
|
LUCKUp = 0.0
|
||||||
MaxHPUp = 0
|
MaxHPUp = 0
|
||||||
MaxVTUp = 0
|
MaxVTUp = 0
|
||||||
AccessoryTags = Array[int]([])
|
AccessoryTags = []
|
||||||
Name = "Mask of the Goddess of Obstinance"
|
Name = "Mask of the Goddess of Obstinance"
|
||||||
Description = "Raises DEF."
|
Description = "Raises DEF."
|
||||||
Texture = ExtResource("1_1uw37")
|
Texture = ExtResource("1_1uw37")
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ DEFUp = 0
|
|||||||
LUCKUp = 0.0
|
LUCKUp = 0.0
|
||||||
MaxHPUp = 0
|
MaxHPUp = 0
|
||||||
MaxVTUp = 0
|
MaxVTUp = 0
|
||||||
AccessoryTags = Array[int]([1])
|
AccessoryTags = [1]
|
||||||
Name = "Mask of the Shunned Goddess"
|
Name = "Mask of the Shunned Goddess"
|
||||||
Description = "Status Effect Immunity"
|
Description = "Status Effect Immunity"
|
||||||
Texture = ExtResource("1_uwbei")
|
Texture = ExtResource("1_uwbei")
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ DEFUp = 0
|
|||||||
LUCKUp = 0.0
|
LUCKUp = 0.0
|
||||||
MaxHPUp = 0
|
MaxHPUp = 0
|
||||||
MaxVTUp = 0
|
MaxVTUp = 0
|
||||||
AccessoryTags = Array[int]([0])
|
AccessoryTags = [0]
|
||||||
Name = "Mask of the Goddess of Sloth"
|
Name = "Mask of the Goddess of Sloth"
|
||||||
Description = "Halves VT Depletion Rate"
|
Description = "Halves VT Depletion Rate"
|
||||||
Texture = ExtResource("1_t16cd")
|
Texture = ExtResource("1_t16cd")
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ DEFUp = 0
|
|||||||
LUCKUp = 0.0
|
LUCKUp = 0.0
|
||||||
MaxHPUp = 0
|
MaxHPUp = 0
|
||||||
MaxVTUp = 50
|
MaxVTUp = 50
|
||||||
AccessoryTags = Array[int]([])
|
AccessoryTags = []
|
||||||
Name = "Mask of the Goddess of Suffering"
|
Name = "Mask of the Goddess of Suffering"
|
||||||
Description = "Raises MAX VT"
|
Description = "Raises MAX VT"
|
||||||
Texture = ExtResource("1_vc77e")
|
Texture = ExtResource("1_vc77e")
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ DEFUp = 0
|
|||||||
LUCKUp = 0.0
|
LUCKUp = 0.0
|
||||||
MaxHPUp = 50
|
MaxHPUp = 50
|
||||||
MaxVTUp = 0
|
MaxVTUp = 0
|
||||||
AccessoryTags = Array[int]([])
|
AccessoryTags = []
|
||||||
Name = "Mask of the Goddess of Zeal"
|
Name = "Mask of the Goddess of Zeal"
|
||||||
Description = "Raises MAX HP"
|
Description = "Raises MAX HP"
|
||||||
Texture = ExtResource("1_ggv41")
|
Texture = ExtResource("1_ggv41")
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
55
src/map/water.gdshader
Normal file
55
src/map/water.gdshader
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
shader_type spatial;
|
||||||
|
render_mode blend_mix, depth_draw_opaque, cull_back, diffuse_lambert, specular_schlick_ggx;
|
||||||
|
|
||||||
|
uniform vec3 albedo : source_color;
|
||||||
|
uniform sampler2D water_texture1;
|
||||||
|
uniform sampler2D water_texture2;
|
||||||
|
uniform sampler2D noise_texture;
|
||||||
|
uniform vec2 scroll_speed1 = vec2(0.05, 0.0);
|
||||||
|
uniform vec2 scroll_speed2 = vec2(-0.03, 0.0);
|
||||||
|
uniform float blend_factor = 0.5;
|
||||||
|
uniform vec2 scale1 = vec2(1.0, 1.0);
|
||||||
|
uniform vec2 scale2 = vec2(1.0, 1.0);
|
||||||
|
uniform float wave_strength = 1.0;
|
||||||
|
uniform float wave_scale = 0.02;
|
||||||
|
uniform int pixelation_level = 64;
|
||||||
|
uniform float FoamSize = 0.5;
|
||||||
|
uniform sampler2D DepthTexture : hint_depth_texture;
|
||||||
|
uniform float WaterOpacity = 1.0;
|
||||||
|
uniform float FoamGlowIntensity = 0.5;
|
||||||
|
|
||||||
|
void vertex() {
|
||||||
|
vec2 global_position = (MODEL_MATRIX * vec4(VERTEX, 1.0)).xz;
|
||||||
|
float noise_value = texture(noise_texture, global_position * wave_scale).r;
|
||||||
|
float wave = sin(global_position.x * 0.2 + global_position.y * 0.2 + TIME + noise_value * 10.0) * wave_strength;
|
||||||
|
VERTEX.y += wave;
|
||||||
|
}
|
||||||
|
|
||||||
|
void fragment() {
|
||||||
|
vec2 scaledUV1 = UV * scale1;
|
||||||
|
vec2 scaledUV2 = UV * scale2;
|
||||||
|
vec2 scrolledUV1 = scaledUV1 + scroll_speed1 * TIME;
|
||||||
|
vec2 scrolledUV2 = scaledUV2 + scroll_speed2 * TIME;
|
||||||
|
scrolledUV1 = mod(scrolledUV1, vec2(1.0, 1.0));
|
||||||
|
scrolledUV2 = mod(scrolledUV2, vec2(1.0, 1.0));
|
||||||
|
scrolledUV1 = floor(scrolledUV1 * float(pixelation_level)) / float(pixelation_level);
|
||||||
|
scrolledUV2 = floor(scrolledUV2 * float(pixelation_level)) / float(pixelation_level);
|
||||||
|
|
||||||
|
vec4 water_color1 = texture(water_texture1, scrolledUV1);
|
||||||
|
vec4 water_color2 = texture(water_texture2, scrolledUV2);
|
||||||
|
vec4 blended_water_color = mix(water_color1, water_color2, blend_factor);
|
||||||
|
|
||||||
|
float depthValue = texture(DepthTexture, SCREEN_UV).r;
|
||||||
|
vec4 worldPosition = INV_PROJECTION_MATRIX * vec4(SCREEN_UV * 2.0 - 1.0, depthValue, 1.0);
|
||||||
|
worldPosition.xyz /= worldPosition.w;
|
||||||
|
float foamEffect = clamp(1.0 - smoothstep(worldPosition.z + FoamSize, worldPosition.z, VERTEX.z), 0.0, 1.0);
|
||||||
|
float foamOpacity = 1.0 - foamEffect;
|
||||||
|
float foamEffectRounded = round(foamOpacity);
|
||||||
|
float finalOpacity = foamEffectRounded + WaterOpacity;
|
||||||
|
|
||||||
|
ALBEDO = blended_water_color.rgb * albedo;
|
||||||
|
ALPHA = finalOpacity;
|
||||||
|
EMISSION = vec3(foamEffectRounded) * FoamGlowIntensity;
|
||||||
|
METALLIC = 0.0;
|
||||||
|
ROUGHNESS = 1.0;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user