Anime-esque Quicksand Shader

Anime-esque Quicksand Shader

Shader code
/*
	アニメ風流砂シェーダー by あるる(きのもと 結衣) @arlez80
	Anime-esque Quicksand Shader by Yui Kinomoto @arlez80

	MIT License
*/
shader_type spatial;

uniform vec4 sand_color : hint_color = vec4( 0.8, 0.6, 0.232, 1.0 );

uniform vec2 speed = vec2( 0.1, 0.0 );
uniform float wave_scale = 0.8;
uniform float wave_power = 80.0;
uniform float wave_interval = 90.0;

uniform float normal_depth = 1.0;

void fragment( )
{
	vec2 uv = UV + speed * TIME;
	NORMALMAP = normalize( vec3( cos( sin( uv.y * wave_power ) * wave_scale + uv.x * wave_interval ) * 0.25 + 0.5, 1.0, 0.5 ) );
	NORMALMAP_DEPTH = normal_depth;
	ALBEDO = sand_color.rgb;
}
Tags
Quicksand
The shader code and all code snippets in this post are under MIT license and can be used freely. Images and videos, and assets depicted in those, do not fall under this license. For more info, see our License terms.

More from arlez80

Ascii Effect Shader

Fire Shader for Godot Engine 4

Procedural Wang Tiling Shader

Related shaders

PSX Drag-&-Drop Shader

Triplanar normal mix shader + detail options

Synty Biomes Tree Compatible shader

Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments