+1

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

Post Effect Outline Shader

Procedural Illustration-esque Hair Highlight Shader

Procedural Stained-Glass Shader

Related shaders

Anime-esque Water Shader

Procedural Illustration-esque Hair Highlight Shader

2D Hologram Shader

guest
0 Comments
Inline Feedbacks
View all comments