Import current DEMON v0.19 source, assets and development handoff

This commit is contained in:
JariKo
2026-10-28 15:39:06 +02:00
commit 2b9ae06592
347 changed files with 14404 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
shader_type spatial;
render_mode unshaded, cull_disabled, depth_draw_never;
uniform vec2 grid_origin=vec2(-2.0,-4.0);
uniform vec2 grid_area=vec2(12.0,9.0);
varying vec2 world_xz;
void vertex(){world_xz=(MODEL_MATRIX*vec4(VERTEX,1.0)).xz;}
void fragment(){
vec2 cell=world_xz-grid_origin;
vec2 pixel=max(fwidth(cell),vec2(.0001));
vec2 distance_to_line=abs(fract(cell+.5)-.5)/pixel;
float lines=1.0-smoothstep(.65,1.45,min(distance_to_line.x,distance_to_line.y));
vec2 edge=min(cell,grid_area-cell)/pixel;
float border=1.0-smoothstep(1.0,2.0,min(edge.x,edge.y));
ALBEDO=vec3(.71,.61,.41);
ALPHA=max(lines*.65,border*.9);
if(ALPHA<.01)discard;
}