Pulse Aura for 3D Character

For better effect use decrease A value in RGB (Aura Color), you can set up as you wish in Shader Parameters.

In Shader Parameters you can edit:

1) Aura Color

2) Aura Thickness

3) Apply to Mesh 

4) Pulse Speed

5) Pulse Strength

Shader code
shader_type spatial;

uniform vec4 aura_color : source_color = vec4(2.0, 1.0, 0.0, 0.09);
uniform float aura_thickness : hint_range(0.01, 0.1) = 0.01;
uniform bool apply_to_mesh = true;
uniform float pulse_speed : hint_range(0.1, 5.0) = 1.0;
uniform float pulse_strength : hint_range(0.0, 1.0) = 0.2;

void vertex() {
    if (apply_to_mesh) {
        VERTEX = VERTEX + NORMAL * aura_thickness;
    }
}

void fragment() {
    float time = TIME * pulse_speed;
    float pulse_factor = sin(time) * 0.5 + 0.5;

    vec4 dynamic_aura_color = aura_color * (1.0 + pulse_strength * pulse_factor);

    ALBEDO = dynamic_aura_color.rgb;
    ALPHA = dynamic_aura_color.a;

    EMISSION = dynamic_aura_color.rgb * 2.0;
}
Tags
3d, Aura, character, effect, mesh, pulse, Shield, Spatial
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

Fade by distance to character

Aura (3D)

Qi aura, outline

Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments