mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-11 08:23:45 +00:00
50c2014361
Adds sdfgi_enabled and a ReflectionProbe to all three arenas' Environment setup so surfaces get real bounce lighting/reflections instead of flat ambient. Converts arena_boundary.tscn's shared glass field material from unshaded to a shaded, rim-lit material so it reads as glass (dim face-on, highlighted at grazing angles) rather than a flat tinted overlay.
94 lines
3.0 KiB
Plaintext
94 lines
3.0 KiB
Plaintext
[gd_scene load_steps=8 format=3]
|
|
|
|
[ext_resource type="Script" path="res://scripts/arena.gd" id="1_iywne"]
|
|
[ext_resource type="PackedScene" path="res://objects/arena_boundary.tscn" id="2_bndry"]
|
|
[ext_resource type="PackedScene" uid="uid://cofdcxo5170rs" path="res://objects/goal.tscn" id="6_p57ef"]
|
|
|
|
[sub_resource type="Shader" id="Shader_stars"]
|
|
code = "shader_type sky;
|
|
|
|
// Procedural starfield: sparse hash-based stars over near-black space, with a
|
|
// faint blue nebula glow toward the horizon.
|
|
void sky() {
|
|
vec3 dir = EYEDIR;
|
|
vec3 col = vec3(0.01, 0.012, 0.02);
|
|
col += vec3(0.02, 0.03, 0.08) * pow(1.0 - abs(dir.y), 3.0);
|
|
vec3 cell = floor(dir * 300.0);
|
|
float h = fract(sin(dot(cell, vec3(12.9898, 78.233, 45.164))) * 43758.5453);
|
|
if (h > 0.998) {
|
|
vec3 in_cell = fract(dir * 300.0) - 0.5;
|
|
float star = smoothstep(0.4, 0.0, length(in_cell));
|
|
col += vec3(star * (0.5 + fract(h * 999.0)));
|
|
}
|
|
COLOR = col;
|
|
}
|
|
"
|
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_stars"]
|
|
shader = SubResource("Shader_stars")
|
|
|
|
[sub_resource type="Sky" id="Sky_space"]
|
|
sky_material = SubResource("ShaderMaterial_stars")
|
|
|
|
[sub_resource type="Environment" id="Environment_space"]
|
|
background_mode = 2
|
|
sky = SubResource("Sky_space")
|
|
sdfgi_enabled = true
|
|
ambient_light_source = 2
|
|
ambient_light_color = Color(0.55, 0.6, 0.75, 1)
|
|
ambient_light_energy = 0.4
|
|
glow_enabled = true
|
|
glow_levels/1 = 0.0
|
|
glow_levels/2 = 0.4
|
|
glow_levels/3 = 0.8
|
|
glow_levels/4 = 0.6
|
|
glow_levels/5 = 0.2
|
|
glow_intensity = 0.9
|
|
glow_strength = 1.2
|
|
glow_bloom = 0.05
|
|
glow_blend_mode = 1
|
|
glow_hdr_threshold = 1.0
|
|
glow_hdr_scale = 2.0
|
|
adjustment_enabled = true
|
|
adjustment_brightness = 1.0
|
|
adjustment_contrast = 1.05
|
|
adjustment_saturation = 1.08
|
|
|
|
[node name="Arena" type="Node3D"]
|
|
script = ExtResource("1_iywne")
|
|
|
|
[node name="Boundary" parent="." instance=ExtResource("2_bndry")]
|
|
|
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
|
transform = Transform3D(0.866025, -0.383022, 0.321394, 0, 0.642788, 0.766044, -0.5, -0.663414, 0.55667, 0, 11, 0)
|
|
shadow_enabled = true
|
|
|
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
|
environment = SubResource("Environment_space")
|
|
|
|
[node name="ReflectionProbe" type="ReflectionProbe" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0)
|
|
size = Vector3(26, 14, 40)
|
|
box_projection = true
|
|
update_mode = 0
|
|
|
|
[node name="GoalTeam0" parent="." instance=ExtResource("6_p57ef")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.79, 18)
|
|
|
|
[node name="GoalTeam1" parent="." instance=ExtResource("6_p57ef")]
|
|
transform = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, -1, 0, 0.79, -18)
|
|
team = 1
|
|
|
|
[node name="BallSpawn" type="Marker3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0)
|
|
|
|
[node name="SpawnsTeam0" type="Node3D" parent="."]
|
|
|
|
[node name="Spawn1" type="Marker3D" parent="SpawnsTeam0"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.8, 13.5)
|
|
|
|
[node name="SpawnsTeam1" type="Node3D" parent="."]
|
|
|
|
[node name="Spawn1" type="Marker3D" parent="SpawnsTeam1"]
|
|
transform = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, -1, 0, 2.8, -13.5)
|