Speedlines : Manga Style !

Based on the excellent work of Exuin

Add to your shader material a NoiseTexture2D then a FastNoiseLite with the following parameters to obtain the same effect:

  • Enable Seamless
  • Noise Type : Simplex
    • Frequency: 0.09

Enjoy 😉 

Shader code
shader_type canvas_item;

uniform sampler2D noise : repeat_enable;
uniform vec4 line_color_a: source_color = vec4(2.0, 0.0, 0.0, 1.0);
uniform vec4 line_color_b: source_color = vec4(1.0, 1.0, 0.0, 1.0);
uniform vec4 back_color: source_color = vec4(0.271,0,0,1);
uniform float line_threshold: hint_range(0.0, 1.0, 0.01) = 0.8;
uniform float speed: hint_range(0.0, 1.0, 0.01) = 0.03;
uniform float line_length = 1000.0;
uniform float angle: hint_range(0.0, 360.0) = 60.0;


void fragment() {
	vec2 uv = vec2(UV.x * cos(radians(angle)) - UV.y * sin(radians(angle)), UV.x * sin(radians(angle)) + UV.y * cos(radians(angle)));
	vec4 noise_line = texture(noise, vec2(uv.x / line_length + fract(TIME) * speed, uv.y));
	vec4 color;
	if (noise_line.r < line_threshold){
		color = back_color;
	} else {
		color = mix(line_color_a, line_color_b, 1.0 - noise_line.r);
	}
	COLOR = color;
}
Tags
canvas, manga, speedline, transition
The shader code and all code snippets in this post are under CC0 license and can be used freely without the author's permission. Images and videos, and assets depicted in those, do not fall under this license. For more info, see our License terms.

Related shaders

Radial Speedlines

SPEEDLINES

SELECT PLAYER STYLE 80S GAME

Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments