New Icons and work on title screen, range sphere improved with dotted lines.

This commit is contained in:
2026-03-04 13:16:06 -05:00
parent bed068eafc
commit 1ae69f8552
11 changed files with 14 additions and 0 deletions

View File

@@ -4,7 +4,14 @@ render_mode blend_add, cull_disabled;
uniform vec4 intersection_color : source_color = vec4(1.0, 0.5, 0.0, 1.0);
uniform float intersection_thickness = 0.5;
uniform float intensity = 1.0f;
uniform float dots_per_radian : hint_range(1.0, 50.0, 1.0) = 10.0f;
uniform sampler2D DEPTH_TEXTURE : hint_depth_texture, filter_linear_mipmap;
varying vec3 v_normal;
void vertex() {
v_normal = NORMAL;
}
void fragment() {
// 1. Get linear depth of the scene (opaque objects)
@@ -30,6 +37,12 @@ void fragment() {
float strength = .25 + .75 * (1.0 + sin(TIME*3.0))/2.0;
ALPHA = max(.05, intersect * intersection_color.a * strength);
float angle = atan(v_normal.z, v_normal.x);
float dot_step = (2.0f * PI) / dots_per_radian;
angle = round(angle / dot_step + 0.5f);
if(mod(angle,2.0) == 0.0){
ALPHA = 0.0;
}
if(ALPHA == .05){
ALBEDO = intersection_color.rgb;
}else{