feat(art): add storybook meadow and woodland villagers

This commit is contained in:
Rijad Zuzo
2026-09-05 18:56:44 +02:00
parent 6aae41d36f
commit da3bed67a0
60 changed files with 1222 additions and 373 deletions
+23 -10
View File
@@ -7,17 +7,17 @@ extends Node
const TO_RAD := PI / 180.0
const DAY_SKY_TOP := Color(0.23, 0.43, 0.62, 1)
const DAY_SKY_HORIZON := Color(0.82, 0.68, 0.5, 1)
const DAY_SKY_TOP := Color(0.27, 0.57, 0.74, 1)
const DAY_SKY_HORIZON := Color(0.79, 0.88, 0.82, 1)
const DAY_GROUND_BOTTOM := Color(0.12, 0.17, 0.12, 1)
const DAY_GROUND_HORIZON := Color(0.62, 0.55, 0.42, 1)
const DAY_AMBIENT := Color(0.91, 0.85, 0.72, 1)
const DAY_AMBIENT_ENERGY := 0.7
const DAY_FOG_LIGHT := Color(0.82, 0.78, 0.66, 1)
const DAY_FOG_LIGHT_ENERGY := 0.72
const DAY_FOG_DENSITY := 0.002
const DAY_LIGHT_COLOR := Color(1, 0.87, 0.72, 1)
const DAY_LIGHT_ENERGY := 1.45
const DAY_GROUND_HORIZON := Color(0.56, 0.69, 0.57, 1)
const DAY_AMBIENT := Color(0.72, 0.83, 0.88, 1)
const DAY_AMBIENT_ENERGY := 0.55
const DAY_FOG_LIGHT := Color(0.70, 0.83, 0.81, 1)
const DAY_FOG_LIGHT_ENERGY := 0.8
const DAY_FOG_DENSITY := 0.0015
const DAY_LIGHT_COLOR := Color(1, 0.94, 0.79, 1)
const DAY_LIGHT_ENERGY := 1.2
const NIGHT_SKY_TOP := Color(0.04, 0.04, 0.12, 1)
const NIGHT_SKY_HORIZON := Color(0.08, 0.06, 0.14, 1)
@@ -123,6 +123,19 @@ func _apply_environment(cycle: float) -> void:
mat.sky_horizon_color = _lerp_color(NIGHT_SKY_HORIZON, DAY_SKY_HORIZON, day_factor)
mat.ground_bottom_color = _lerp_color(NIGHT_GROUND_BOTTOM, DAY_GROUND_BOTTOM, day_factor)
mat.ground_horizon_color = _lerp_color(NIGHT_GROUND_HORIZON, DAY_GROUND_HORIZON, day_factor)
elif sky != null and sky.sky_material is ShaderMaterial:
var mat := sky.sky_material as ShaderMaterial
mat.set_shader_parameter("sky_top_color", NIGHT_SKY_TOP.lerp(DAY_SKY_TOP, day_factor))
mat.set_shader_parameter(
"sky_horizon_color", NIGHT_SKY_HORIZON.lerp(DAY_SKY_HORIZON, day_factor)
)
mat.set_shader_parameter(
"ground_bottom_color", NIGHT_GROUND_BOTTOM.lerp(DAY_GROUND_BOTTOM, day_factor)
)
mat.set_shader_parameter(
"ground_horizon_color", NIGHT_GROUND_HORIZON.lerp(DAY_GROUND_HORIZON, day_factor)
)
mat.set_shader_parameter("daylight", day_factor)
func _find_simulation_node() -> void: