Screen Noise Effect Shader

Screen noise effect shader 

Shader code
/*
	砂嵐エフェクト by あるる(きのもと 結衣)
	Screen Noise Effect Shader by Yui Kinomoto @arlez80

	MIT License
*/
shader_type canvas_item;

uniform float seed = 81.0;
uniform float power : hint_range( 0.0, 1.0 ) = 0.03;
uniform float speed = 0.0;

vec2 random( vec2 pos )
{ 
	return fract(
		sin(
			vec2(
				dot(pos, vec2(12.9898,78.233))
			,	dot(pos, vec2(-148.998,-65.233))
			)
		) * 43758.5453
	);
}

void fragment( )
{
	vec2 uv = SCREEN_UV + ( random( UV + vec2( seed - TIME * speed, TIME * speed ) ) - vec2( 0.5, 0.5 ) ) * power;
	COLOR = textureLod( SCREEN_TEXTURE, uv, 0.0 );
}
Tags
noise, Post Effect, random
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

Magical Shield Shader #2

Fire Shader

Swirl Shader

Related shaders

Screen-Space Edge Detection Outline Shader

Noise Laser

Noise vertex displacement

guest
0 Comments
Inline Feedbacks
View all comments