move star chart to nature.rs
This commit is contained in:
parent
9f6d12145f
commit
77acbfbd9b
|
@ -4,7 +4,6 @@ mod world;
|
|||
mod settings;
|
||||
mod hud;
|
||||
mod actor;
|
||||
mod starchart;
|
||||
|
||||
#[allow(dead_code)]
|
||||
mod nature;
|
||||
|
|
15551
src/nature.rs
15551
src/nature.rs
File diff suppressed because it is too large
Load diff
15550
src/starchart.rs
15550
src/starchart.rs
File diff suppressed because it is too large
Load diff
|
@ -1,4 +1,4 @@
|
|||
use crate::{actor, camera, starchart, nature};
|
||||
use crate::{actor, camera, nature};
|
||||
use bevy::prelude::*;
|
||||
//use bevy::core_pipeline::Skybox;
|
||||
//use bevy::asset::LoadState;
|
||||
|
@ -164,7 +164,7 @@ pub fn setup(
|
|||
}
|
||||
|
||||
// Generate starmap
|
||||
for star in starchart::STARS {
|
||||
for star in nature::STARS {
|
||||
let brightness = star[3] * 2000.0;
|
||||
let (r, g, b) = nature::star_color_index_to_rgb(star[4]);
|
||||
let star_color_handle = materials.add(StandardMaterial {
|
||||
|
|
|
@ -28,8 +28,8 @@ import math
|
|||
# Meissa (orion's head, 8th brightest star in orion) = 3.33
|
||||
MAX_APPARENT_MAGNITUDE = 7.0
|
||||
|
||||
print("// This file was autogenerated by 'genrate_starchart.py' using data from")
|
||||
print("// the HYG database: https://github.com/astronexus/HYG-Database/tree/main/hyg")
|
||||
print("// The \"STARS\" was autogenerated by \"genrate_starchart.py\" using data")
|
||||
print("// from the HYG database: https://github.com/astronexus/HYG-Database/tree/main/hyg")
|
||||
print("// License: CC BY-SA 4.0: https://creativecommons.org/licenses/by-sa/4.0/")
|
||||
print("")
|
||||
print("pub const STARS: &[[f32; 5]] = &[")
|
||||
|
|
Loading…
Reference in a new issue