Back glow effect for item backgrounds

Can be used for item backgrounds add a new noise shader in the shader param and add another sprite as an item

Shader code
shader_type canvas_item;

uniform sampler2D texture2;
uniform sampler2D color_texture;
uniform vec2 scroll_offset = vec2(0.1,0.1);
uniform vec2 scroll_offset2 = vec2(0.1,0.1);
uniform vec2 center = vec2(0.5,0.5);
uniform float amount = 0.3;

void fragment(){
	vec2 disp = normalize(UV - center);
	float texture_color1 = texture(TEXTURE,(UV-disp) +scroll_offset*TIME).r;
	float texture_color2 = texture(texture2,UV + scroll_offset2*TIME).r;
	float energy = texture_color1*texture_color2 - amount;
	vec4 color = texture(color_texture,vec2(energy));
	COLOR = color;
	
}
Tags
item highligt
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

Glow effect 2D

Gaussian Glow

Pulse effect (Godot 4)

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments