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

Procedural Window Rain Drop Shader

Sonar Effect Shader

Radial Blur Shader

Related shaders

Thick 3D Screen Space – Depth – & Normal – Based Outline Shader.

Glass shader

Decal shader 4.0 port

Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments