move star chart to nature.rs

This commit is contained in:
yuni 2024-03-19 03:54:16 +01:00
parent 9f6d12145f
commit 77acbfbd9b
5 changed files with 15555 additions and 15555 deletions

View file

@ -4,7 +4,6 @@ mod world;
mod settings;
mod hud;
mod actor;
mod starchart;
#[allow(dead_code)]
mod nature;

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -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 {

View file

@ -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]] = &[")