Import current DEMON v0.19 source, assets and development handoff
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
shader_type spatial;
|
||||
render_mode unshaded, cull_disabled, depth_draw_never;
|
||||
uniform float phase=0.0;
|
||||
float hash(vec2 p){return fract(sin(dot(p,vec2(127.1,311.7)))*43758.5453);}
|
||||
float noise(vec2 p){vec2 i=floor(p),f=fract(p);f=f*f*(3.0-2.0*f);return mix(mix(hash(i),hash(i+vec2(1,0)),f.x),mix(hash(i+vec2(0,1)),hash(i+vec2(1,1)),f.x),f.y);}
|
||||
void fragment(){
|
||||
vec2 uv=UV;float n=noise(uv*vec2(5,9)+vec2(phase,TIME*.35));
|
||||
n=mix(n,noise(uv*vec2(12,18)+vec2(phase,TIME*.5)),.3);
|
||||
float edge=pow(max(0.0,1.0-abs(uv.x-.5)*2.0),2.0)*sin(uv.y*3.14159);
|
||||
ALBEDO=vec3(.28,.26,.21);ALPHA=edge*smoothstep(.25,.7,n)*.13;
|
||||
}
|
||||
Reference in New Issue
Block a user