11 lines
333 B
Plaintext
11 lines
333 B
Plaintext
shader_type spatial;
|
|
render_mode blend_add, depth_draw_never, unshaded, shadows_disabled;
|
|
uniform float heat=0.0;
|
|
varying float model_height;
|
|
void vertex(){ model_height=VERTEX.y; }
|
|
void fragment(){
|
|
float warmth=heat*(.35+.65*(1.0-smoothstep(0.0,2.8,model_height)));
|
|
ALBEDO=vec3(1.0,.07,.003)*warmth*warmth*.22;
|
|
ALPHA=heat*.45;
|
|
}
|