1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
/// Mesh identifier for procedural skyscraper blocks in `World3D::create_dense_open_world_city`.
pub const DENSE_TOWER_MESH_NAME: &str = "dense_tower";
/// Default atmospheric preset hour for golden-hour Sunset (`0`).
pub const ATMOSPHERE_HOUR_SUNSET: f32 = 17.2;
/// Atmospheric preset hour for cyberpunk Rainy Night (`1`).
pub const ATMOSPHERE_HOUR_RAINY_NIGHT: f32 = 21.4;
/// Atmospheric preset hour for crisp daylight Noon (`2`).
pub const ATMOSPHERE_HOUR_NOON: f32 = 12.5;
/// Atmospheric preset hour for deep neon Midnight (`3`).
pub const ATMOSPHERE_HOUR_MIDNIGHT: f32 = 23.0;
/// Maximum simultaneous ambient Niagara rain streaks in Rainy Night mode.
pub const RAINY_NIGHT_MAX_PARTICLES: usize = 20;
/// Asset name for instanced Vice Boulevard coastal palm trees.
pub const CITY_PALM_MESH_NAME: &str = "vice_palm_tree";
/// Asset name for distant skyline silhouette towers framing the horizon.
pub const CITY_SKYLINE_MESH_NAME: &str = "skyline_silhouette";
/// Asset name for coastal seawall parapet segments enclosing the city island.
pub const CITY_SEAWALL_MESH_NAME: &str = "coastal_seawall";
/// Asset name for the surrounding animated liquid ocean boundary mesh.
pub const CITY_OCEAN_MESH_NAME: &str = "coastal_ocean_water";
/// Half-width in meters of the solid coastal Vice Boulevard city island along X (`[-52, +52]`).
pub const CITY_ISLAND_HALF_X: f32 = 52.0;
/// Northernmost Z bound in meters of the solid coastal Vice Boulevard city island.
pub const CITY_ISLAND_Z_MIN: f32 = -110.0;
/// Southernmost Z bound in meters of the solid coastal Vice Boulevard city island.
pub const CITY_ISLAND_Z_MAX: f32 = 82.0;
/// Vertical world elevation in meters of the surrounding liquid ocean water surface below the island deck.
pub const CITY_OCEAN_SURFACE_Y: f32 = -0.34;
/// Horizontal span in meters of the surrounding liquid ocean surface extending to the horizon on all sides.
pub const CITY_OCEAN_SPAN_M: f32 = 760.0;
/// Live-Link JSON delta discriminator for node transform updates.
pub const LIVE_DELTA_KIND_TRANSFORM: &str = "node_transform";
/// Live-Link JSON delta discriminator for Principled BSDF material updates.
pub const LIVE_DELTA_KIND_MATERIAL: &str = "material_params";
/// Live-Link JSON delta discriminator for shape-key morph weight updates.
pub const LIVE_DELTA_KIND_MORPH: &str = "morph_weights";
/// Live-Link JSON delta discriminator for punctual or area light updates.
pub const LIVE_DELTA_KIND_LIGHT: &str = "light_update";
/// Live-Link JSON delta discriminator for camera pose updates.
pub const LIVE_DELTA_KIND_CAMERA: &str = "camera_update";
/// Live-Link JSON delta discriminator for Blender Collection visibility toggles.
pub const LIVE_DELTA_KIND_COLLECTION: &str = "collection_visibility";
/// Live-Link JSON delta discriminator for IBL environment updates.
pub const LIVE_DELTA_KIND_ENVIRONMENT: &str = "environment_update";
/// JSON field key for delta discriminator.
pub const LIVE_KEY_KIND: &str = "kind";
/// JSON field key for target node name.
pub const LIVE_KEY_NODE_NAME: &str = "node_name";
/// JSON field key for translation array.
pub const LIVE_KEY_TRANSLATION: &str = "translation";
/// JSON field key for rotation quaternion array.
pub const LIVE_KEY_ROTATION: &str = "rotation";
/// JSON field key for scale array.
pub const LIVE_KEY_SCALE: &str = "scale";
/// JSON field key indicating Blender Z-up coordinate space.
pub const LIVE_KEY_BLENDER_Z_UP: &str = "blender_z_up";
/// JSON field key for target material name.
pub const LIVE_KEY_MATERIAL_NAME: &str = "material_name";
/// JSON field key for base color RGBA factor.
pub const LIVE_KEY_BASE_COLOR: &str = "base_color_factor";
/// JSON field key for metallic scalar.
pub const LIVE_KEY_METALLIC: &str = "metallic_factor";
/// JSON field key for roughness scalar.
pub const LIVE_KEY_ROUGHNESS: &str = "roughness_factor";
/// JSON field key for clearcoat factor.
pub const LIVE_KEY_CLEARCOAT: &str = "clearcoat_factor";
/// JSON field key for clearcoat roughness scalar.
pub const LIVE_KEY_CLEARCOAT_ROUGHNESS: &str = "clearcoat_roughness_factor";
/// JSON field key for sheen RGB tint.
pub const LIVE_KEY_SHEEN_COLOR: &str = "sheen_color_factor";
/// JSON field key for sheen roughness scalar.
pub const LIVE_KEY_SHEEN_ROUGHNESS: &str = "sheen_roughness_factor";
/// JSON field key for emissive RGB color.
pub const LIVE_KEY_EMISSIVE: &str = "emissive_factor";
/// JSON field key for HDR emissive strength.
pub const LIVE_KEY_EMISSIVE_STRENGTH: &str = "emissive_strength";
/// JSON field key for transmission factor.
pub const LIVE_KEY_TRANSMISSION: &str = "transmission_factor";
/// JSON field key for morph target weights array.
pub const LIVE_KEY_WEIGHTS: &str = "weights";
/// JSON field key for light index.
pub const LIVE_KEY_LIGHT_INDEX: &str = "light_index";
/// JSON field key for light color RGB.
pub const LIVE_KEY_COLOR: &str = "color";
/// JSON field key for light or environment intensity.
pub const LIVE_KEY_INTENSITY: &str = "intensity";
/// JSON field key for light or camera position.
pub const LIVE_KEY_POSITION: &str = "position";
/// JSON field key for light direction.
pub const LIVE_KEY_DIRECTION: &str = "direction";
/// JSON field key for camera pitch.
pub const LIVE_KEY_PITCH: &str = "pitch";
/// JSON field key for camera vertical FOV degrees.
pub const LIVE_KEY_FOV_DEG: &str = "fov_deg";
/// JSON field key for collection name.
pub const LIVE_KEY_COLLECTION_NAME: &str = "collection_name";
/// JSON field key for visibility toggle.
pub const LIVE_KEY_VISIBLE: &str = "visible";
/// JSON field key for environment Y rotation in radians.
pub const LIVE_KEY_ROTATION_Y_RAD: &str = "rotation_y_rad";
/// Error message returned when Live-Link delta JSON lacks a valid discriminator.
pub const ERR_LIVE_DELTA_UNKNOWN_KIND: &str = "unknown or missing live delta kind";
/// Default Blender imported mesh prefix for unnamed primitives.
pub const BLENDER_IMPORTED_NODE_FALLBACK: &str = "blender_node";
/// Default octahedral resolution for auto-baked procedural sky IBL.
pub const WORLD_DEFAULT_IBL_OCT_SIZE: u32 = 32;
/// Default BRDF LUT resolution for auto-baked procedural sky IBL.
pub const WORLD_DEFAULT_IBL_LUT_SIZE: u32 = 32;
/// Maximum linear displacement per continuous collision detection substep in meters (smaller than thinnest lamp pole).
pub const COLLISION_CCD_MAX_STEP_M: f32 = 0.12;
/// Maximum continuous collision detection linear substeps per simulation tick preventing tunneling at arbitrary speeds.
pub const COLLISION_CCD_MAX_SUBSTEPS: usize = 512;
/// Maximum yaw rotation step per continuous collision detection substep in radians.
pub const COLLISION_ROT_MAX_STEP_RAD: f32 = 0.06;
/// Maximum continuous collision detection rotation substeps per simulation tick.
pub const COLLISION_ROT_MAX_SUBSTEPS: usize = 32;
/// Maximum iterative horizontal minimum-translation-vector depenetration passes per vehicle tick.
pub const COLLISION_MTV_MAX_ITERS: usize = 6;
/// Safety separation bias in meters added to horizontal minimum-translation-vector push-out to clear floating-point contact ties.
pub const COLLISION_MTV_PUSH_EPS: f32 = 0.015;
/// Maximum single-step horizontal push-out permitted when resolving steering contact against a wall.
pub const COLLISION_ROT_MAX_PUSH_M: f32 = 0.35;