Import current DEMON v0.19 source, assets and development handoff
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
shader_type spatial;
|
||||
render_mode cull_disabled;
|
||||
uniform float agitation=0.0;
|
||||
varying vec3 wp;
|
||||
void vertex(){wp=(MODEL_MATRIX*vec4(VERTEX,1.0)).xyz;VERTEX.y+=sin(VERTEX.x*8.0+TIME*2.0)*0.014+cos(VERTEX.z*9.0-TIME*2.5)*0.012;}
|
||||
void fragment(){
|
||||
float wave=sin(wp.x*14.0-TIME*3.0)*cos(wp.z*17.0+TIME*2.0);
|
||||
float rings=pow(0.5+0.5*sin(length(wp.xz-vec2(2.0,0.5))*28.0-TIME*8.0),12.0);
|
||||
ALBEDO=mix(vec3(0.018,0.065,0.075),vec3(0.09,0.25,0.27),wave*0.5+0.5)+vec3(0.20)*rings*agitation;
|
||||
ROUGHNESS=0.18;METALLIC=0.3;SPECULAR=0.7;
|
||||
NORMAL=normalize(NORMAL+vec3(wave*0.08,0.0,cos(wp.x*12.0+TIME)*0.08));
|
||||
}
|
||||
Reference in New Issue
Block a user