shader_type spatial; render_mode unshaded,cull_disabled,depth_draw_never; uniform float simulation_time=0.0; uniform float heat=0.0; uniform float phase=0.0; void vertex(){ MODELVIEW_MATRIX=VIEW_MATRIX*mat4(INV_VIEW_MATRIX[0],INV_VIEW_MATRIX[1],INV_VIEW_MATRIX[2],MODEL_MATRIX[3]); } void fragment(){ float t=fract(simulation_time*.35+phase);vec2 p=UV-vec2(.5,.65-t*.3);p.x+=sin(UV.y*8.0+simulation_time+phase)*.09; float fog=exp(-dot(p*vec2(4.0,2.1),p*vec2(4.0,2.1)))*sin(t*3.14159); ALBEDO=vec3(.75,.83,.82);ALPHA=fog*.16*heat; }