14 lines
463 B
Plaintext
14 lines
463 B
Plaintext
|
|
shader_type spatial;
|
||
|
|
render_mode unshaded,blend_add,cull_disabled,depth_draw_never;
|
||
|
|
uniform float strength=0.0;
|
||
|
|
void fragment(){
|
||
|
|
vec2 p=UV*2.0-1.0;
|
||
|
|
float r=length(p*vec2(1.0,.65));
|
||
|
|
float swirl=.55+.45*sin(atan(p.y,p.x)*7.0-r*18.0+TIME*5.0);
|
||
|
|
float glow=exp(-r*r*3.0);
|
||
|
|
float rim=exp(-pow((r-.72)*15.0,2.0));
|
||
|
|
ALBEDO=vec3(.27,.65,.62);
|
||
|
|
EMISSION=vec3(.25,.85,.72)*(glow*1.5+rim*swirl)*strength;
|
||
|
|
ALPHA=(glow*.65+rim*.5)*strength*(1.0-smoothstep(.80,1.05,r));
|
||
|
|
}
|