meat_madness_redux/godot/effects/sink_block_wavy_meat_part2....

24 lines
580 B
Plaintext
Raw Normal View History

2022-12-27 20:06:15 -07:00
[gd_resource type="ShaderMaterial" load_steps=3 format=2]
[ext_resource path="res://effects/sink_block_tiled_texture.png" type="Texture" id=1]
[sub_resource type="Shader" id=12]
code = "shader_type spatial;
render_mode unshaded, cull_front;
uniform sampler2D texture_albedo : hint_albedo;
2023-01-03 13:19:39 -07:00
uniform float alpha = 1.0;
2022-12-27 20:06:15 -07:00
void fragment() {
vec2 uv = SCREEN_UV;
uv.x += sin((TIME + SCREEN_UV.y) * 5.0)/5.0;
ALBEDO = texture(texture_albedo, uv).rgb;
2023-01-03 13:19:39 -07:00
ALPHA = alpha;
2022-12-27 20:06:15 -07:00
}
"
[resource]
shader = SubResource( 12 )
2023-01-03 13:19:39 -07:00
shader_param/alpha = 1.0
2022-12-27 20:06:15 -07:00
shader_param/texture_albedo = ExtResource( 1 )