nx_atmosphere.nx
buildroot/runtime/nx_atmosphere.nx
about
dependencies 4 imports · 93 importers
diagram shows first 10 each side; +0 more imports, +83 more importers in the complete lists below.
imports: nx_syscalls.nxnx_itrig.nxnx_vecmath.nxnx_tier.nx
imported by: nx_atm_trans_gate.nxnx_atmsky_gate.nxnx_craft_before_placement_t316.nxnx_game_page_affine_candidate_t361.nxnx_game_page_authored_material_t54.nxnx_game_page_body_t138.nxnx_game_page_canonical_t135.nxnx_game_page_catwalk_lighting_candidate_t316.nxnx_game_page_emit.nxnx_game_page_emit_sand_review.nxnx_game_page_eye_t138.nxnx_game_page_gait_candidate_t139.nxnx_game_page_garment_t132.nxnx_game_page_gpu_timing_current_candidate.nxnx_game_page_gpu_timing_pool_candidate.nxnx_game_page_hair_attachment_candidate_t263.nxnx_game_page_hair_attachment_t283.nxnx_game_page_hair_guides_candidate_t263.nxnx_game_page_hair_t138.nxnx_game_page_host_candidate_t341.nxnx_game_page_identity_candidate.nxnx_game_page_imported_body_t45.nxnx_game_page_imported_t262.nxnx_game_page_inspection_distance_t235.nxnx_game_page_inspection_t142.nxnx_game_page_integrated_t73.nxnx_game_page_knight_bind_t25.nxnx_game_page_knight_feedback_t28.nxnx_game_page_knight_feedback_t29.nxnx_game_page_knight_support_t31.nxnx_game_page_knight_support_t31_before_t44.nxnx_game_page_length_diag_t140.nxnx_game_page_lit_candidate_t181.nxnx_game_page_material_body_t61.nxnx_game_page_material_candidate_t181.nxnx_game_page_material_compose_t55.nxnx_game_page_material_schema_candidate_t181.nxnx_game_page_metadata_candidate_t220.nxnx_game_page_mip_candidate_t241.nxnx_game_page_motion_candidate_t328.nxnx_game_page_motion_inventory_candidate_t330.nxnx_game_page_move_t72.nxnx_game_page_owned_candidate_t181.nxnx_game_page_pipeline_t64.nxnx_game_page_pre_inspection_t142.nxnx_game_page_pre_toon_region_t143.nxnx_game_page_procedural_review_candidate_t333.nxnx_game_page_recovery_feedback_t28.nxnx_game_page_recovery_t23.nxnx_game_page_rig_comparison_t332.nxnx_game_page_rig_inspection_t230.nxnx_game_page_rig_observation_candidate_t331.nxnx_game_page_scene_light_candidate_t364.nxnx_game_page_search_t53.nxnx_game_page_shared_candidate_t340.nxnx_game_page_skin_t138.nxnx_game_page_static_candidate_t338.nxnx_game_page_toon_region_candidate_t143.nxnx_game_page_visitors_inspection_t142.nxnx_game_page_visitors_t140.nxnx_game_page_workbench_candidate_t342.nxnx_game_page_workspace_body_t49.nxnx_game_page_workspace_body_t59.nxnx_game_page_workspace_t48.nxnx_movement_base_engine_t139.nxnx_movement_base_page_t139.nxnx_wasm_craft.nxnx_wasm_craft_body_t137.nxnx_wasm_craft_contact_candidate.nxnx_wasm_craft_dunes_t70.nxnx_wasm_craft_gait_candidate.nxnx_wasm_craft_gait_candidate_t139.nxnx_wasm_craft_imported_body_t41.nxnx_wasm_craft_imported_body_t42.nxnx_wasm_craft_imported_body_t49.nxnx_wasm_craft_imported_t262.nxnx_wasm_craft_inspection_bounds_t181.nxnx_wasm_craft_inspection_distance_t218.nxnx_wasm_craft_inspection_t142.nxnx_wasm_craft_journal_index_t21.nxnx_wasm_craft_journal_index_t21_before_t44.nxnx_wasm_craft_lookup_candidate.nxnx_wasm_craft_move_t72.nxnx_wasm_craft_pre_inspection_t142.nxnx_wasm_craft_recovery_t20.nxnx_wasm_craft_relief_adopt_t143.nxnx_wasm_craft_relief_save_t143.nxnx_wasm_craft_relief_t143.nxnx_wasm_craft_residency_t44.nxnx_wasm_craft_turn_candidate_t139.nxnx_wasm_craft_visitors_canonical_t142.nxnx_wasm_craft_visitors_inspection_t142.nxnx_wasm_craft_visitors_t140.nx
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 27 | const NX_EXPNEG_E1_Q14: i64 = 6029 |
| 28 | const NX_EXPNEG_E2_Q14: i64 = 2212 |
| 29 | const NX_T2_E1_LO_Q14: i64 = 5800 |
| 30 | const NX_T2_E1_HI_Q14: i64 = 6200 |
| 32 | const NX_ATM_Q: nx_int = 16384 |
| 45 | const NX_LAMBDA_R_NM: nx_int = 680 |
| 46 | const NX_LAMBDA_G_NM: nx_int = 550 |
| 47 | const NX_LAMBDA_B_NM: nx_int = 440 |
| 52 | const NX_AIRMASS_MAX: nx_int = 38 |
| 55 | const NX_TAU_BLUE_PERMIL: nx_int = 700 |
| 124 | const NX_BODY_SUN_LOCAL: nx_int = 0 // local alias for SUN |
| 125 | const NX_BODY_MERCURY_LOCAL: nx_int = 1 |
| 126 | const NX_BODY_VENUS_LOCAL: nx_int = 2 |
| 127 | const NX_BODY_EARTH_LOCAL: nx_int = 3 |
| 128 | const NX_BODY_MARS_LOCAL: nx_int = 4 |
| 129 | const NX_BODY_TITAN_LOCAL: nx_int = 16 |
| 299 | const ATM_Q16: nx_int = 65536 |
| 301 | const ATM_RB_Q16: nx_int = 416808960 // 6360 km [bytes] both sources |
| 303 | const ATM_RT_Q16: nx_int = 423362560 // 6460 km [bytes] hillaire (bruneton says 6420; divergence adopted+named in the spec) |
| 305 | const ATM_PRO_Q16: nx_int = 655 // PLANET_RADIUS_OFFSET 0.01 km [bytes] |
| 309 | const ATM_SRAY_R_Q24: nx_int = 97336 |
| 311 | const ATM_SRAY_G_Q24: nx_int = 227447 |
| 313 | const ATM_SRAY_B_Q24: nx_int = 555289 |
| 315 | const ATM_SMIE_EXT_Q24: nx_int = 74485 |
| 317 | const ATM_SOZ_R_Q24: nx_int = 10905 |
| 319 | const ATM_SOZ_G_Q24: nx_int = 31557 |
| 321 | const ATM_SOZ_B_Q24: nx_int = 1426 |
| 323 | const ATM_INV_HRAY_Q16: nx_int = 8192 // 1/(8 km) [bytes] scale height |
| 325 | const ATM_INV_HMIE_Q16: nx_int = 54613 // 1/(1.2 km) [bytes] |
| 329 | const ATM_OZ_SLOPE_Q16: nx_int = 4369 |
| 331 | const ATM_OZ_LO_Q16: nx_int = 43691 |
| 333 | const ATM_OZ_HI_Q16: nx_int = 174763 |
| 335 | const ATM_OZ_PEAK_KM_Q16: nx_int = 1638400 // 25 km |
| 337 | const ATM_LOG2E_Q16: nx_int = 94548 // [derived] log2(e)*65536 |
| 339 | const ATM_LN2_Q16: nx_int = 45426 // [derived] ln(2)*65536 |
| 341 | const ATM_TRANS_SAMPLES: nx_int = 500 // [bytes] bruneton_functions trapezoid count |
| 343 | const ATM_SUNLUT_N: nx_int = 64 // sun-zenith LUT rows emitted to the page (Q16 mu in [0,1]) |
| 345 | const ATM_POW32: nx_int = 4294967296 |
functions
| 60 | func nx_atm_beta_permil(lambda_nm: nx_int) -> nx_int |
| 68 | func nx_atm_airmass_q(zenith_angle_q14: nx_int) -> nx_int |
| 90 | func nx_atm_display_255(radiance_q: nx_int) -> nx_int |
| 104 | func nx_atm_channel_q(lambda_nm: nx_int, airmass_q: nx_int) -> nx_int called by 4: nx_atmosphere_sky_color_q14mainwc_specwc_spec calls 2: nx_atm_beta_permil_atm_exp_neg_q14 |
| 131 | func nx_atmosphere_rayleigh_q14(body_id: nx_int) -> nx_int |
| 140 | func nx_atmosphere_mie_q14(body_id: nx_int) -> nx_int |
| 153 | func _atm_exp_neg_q14(x_q14: nx_int) -> nx_int |
| 179 | func nx_atmosphere_extinction_q14( |
| 198 | func nx_atmosphere_fog_density_q14( |
| 217 | func nx_atmosphere_sky_color_q14( |
| 353 | func atm_expneg_q16(x_q16: nx_int) -> nx_int |
| 385 | func atm_dens_q16(species: nx_int, h_q16: nx_int) -> nx_int |
| 415 | func atm_trans_q16(r_q16: nx_int, mu_q16: nx_int, out_rgb: *i64) |
| 493 | func atm_sun_rgb_q16(mu_q16: nx_int, out_rgb: *i64) |
| 503 | func atm_bake_sun_lut(out_rgb: *i64) |
| 521 | func main() -> i64 |