Rage Aura Effect for 3D character

Shader code
shader_type spatial;
render_mode unshaded, blend_mix, depth_draw_always;

uniform vec4 aura_color = vec4(1.0, 0.0, 0.0, 0.5);
uniform float outline_width : hint_range(0.0, 0.1) = 0.02;
uniform float time_scale : hint_range(0.0, 10.0) = 1.0;
uniform float noise_scale : hint_range(0.0, 1.0) = 0.5;
uniform float alpha_cutoff : hint_range(0.0, 1.0) = 0.1;

float noise(vec2 uv) {
    return fract(sin(dot(uv, vec2(12.9898, 78.233))) * 43758.5453);
}

void vertex() {
    VERTEX += NORMAL * outline_width;

    vec3 noise_offset = vec3(noise(UV + TIME * time_scale), noise(UV.yx + TIME * time_scale), noise(UV.xy - TIME * time_scale)) - 0.5;
    VERTEX += noise_offset * outline_width * noise_scale;
}

void fragment() {
    float noise_value = noise(UV * noise_scale + TIME * time_scale);


    float alpha = smoothstep(alpha_cutoff, 1.0, noise_value);

    ALBEDO = aura_color.rgb;
    ALPHA = aura_color.a * alpha;
}
Tags
3d, Aura, character, effect, mesh, rage, red, Spatial, Transparent
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.

More from mattmars

Pulse Aura for 3D Character

3D Retrowave Grid Effect Spatial

Related shaders

Pulse Aura for 3D Character

Aura (3D)

Qi aura, outline

Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments