File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ uniform sampler2D dirt_texture: hint_albedo;
13
13
uniform sampler2D dirt_texture_normal: hint_normal;
14
14
uniform sampler2D dirt_texture_roughness;
15
15
uniform sampler2D blend_texture;
16
- // ANCHOR : textures
16
+ // END : textures
17
17
uniform float snow_height = 0.3 ;
18
18
uniform float snow_sharpness: hint_range(0.3 , 20.0 , 0.1 ) = 3.0 ;
19
19
uniform vec2 textures_tiling = vec2 (4.0 );
@@ -53,8 +53,7 @@ void fragment() {
53
53
float dirt_roughness = texture(dirt_texture_roughness, world_uv_tiled).r;
54
54
float noise_interp = texture(blend_texture, world_uv_tiled * 0.7 ).r;
55
55
// END: sampling
56
- // ANCHOR: overlay
57
- // overlay overlay_blend_mode
56
+ // ANCHOR: overlay_blend_mode
58
57
float snow_interp = mix (
59
58
mask * noise_interp * 2.0 ,
60
59
1.0 - 2.0 * (1.0 - mask) * (1.0 - noise_interp),
@@ -70,4 +69,4 @@ void fragment() {
70
69
ROUGHNESS = mix (dirt_roughness, snow_rougness, snow_interp);
71
70
// END: mix
72
71
}
73
- // END: all
72
+ // END: all
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ void fragment() {
100
100
// ANCHOR: linear_depth
101
101
float depth_delta = VERTEX.z - view_depth.z;
102
102
// END: linear_depth
103
- // ANCHOR: depth_noramlized
103
+ // ANCHOR: depth_normalized
104
104
float depth_normalized = smoothstep (0.0 , max_depth, depth_delta);
105
105
// END: depth_normalized
106
106
// ANCHOR: water_color
@@ -166,4 +166,4 @@ void fragment() {
166
166
ALPHA = mix (water_color, foam_color, foam_factor).a;
167
167
// END: albedo
168
168
}
169
- }
169
+ }
You can’t perform that action at this time.
0 commit comments