Work on the manufactory as well as multiplayer features
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
shader_type spatial;
|
||||
render_mode blend_mix, depth_prepass_alpha, cull_disabled;
|
||||
|
||||
uniform sampler2D albedo_texture : filter_nearest;
|
||||
uniform sampler2D height_gradient;
|
||||
uniform float vertical_offset;
|
||||
uniform float vertical_range : hint_range(1.0, 12.0, 1.0);
|
||||
@@ -14,7 +16,9 @@ void fragment() {
|
||||
float h = (world_position.y - vertical_offset)/vertical_range;
|
||||
vec2 uv = vec2(clamp(h, 0.001, 1.0),0.5);
|
||||
vec4 color = texture(height_gradient, uv);
|
||||
float alpha = texture(albedo_texture, UV).a;
|
||||
ALBEDO = color.rgb;
|
||||
ALPHA = alpha;
|
||||
// Called for every pixel the material is visible on.
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user