Minor edits
parent
e61c580247
commit
7820458404
2
TODO.md
2
TODO.md
|
@ -1,7 +1,6 @@
|
||||||
# Specific projects
|
# Specific projects
|
||||||
|
|
||||||
## Currently working on:
|
## Currently working on:
|
||||||
- first: fix animation transition timings
|
|
||||||
- first: fix particles & physics
|
- first: fix particles & physics
|
||||||
- clickable buttons
|
- clickable buttons
|
||||||
- planet outfitter
|
- planet outfitter
|
||||||
|
@ -218,6 +217,7 @@
|
||||||
- Naming: atlas, sprite, image, frame, texture
|
- Naming: atlas, sprite, image, frame, texture
|
||||||
- Outfits may not change unless you've landed. They might not change ever for CC ships!
|
- Outfits may not change unless you've landed. They might not change ever for CC ships!
|
||||||
- All angle adjustments happen in content & shaders
|
- All angle adjustments happen in content & shaders
|
||||||
|
- Reserved texture: index zero
|
||||||
|
|
||||||
|
|
||||||
## Ideas
|
## Ideas
|
||||||
|
|
|
@ -17,7 +17,20 @@ use winit::{
|
||||||
window::WindowBuilder,
|
window::WindowBuilder,
|
||||||
};
|
};
|
||||||
|
|
||||||
fn main() -> Result<()> {
|
fn main() {
|
||||||
|
if let Err(err) = try_main() {
|
||||||
|
eprintln!("Galactica failed with an error");
|
||||||
|
|
||||||
|
let mut i = 0;
|
||||||
|
for e in err.chain().rev() {
|
||||||
|
eprintln!("{i:02}: {}", e);
|
||||||
|
i += 1;
|
||||||
|
}
|
||||||
|
std::process::exit(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fn try_main() -> Result<()> {
|
||||||
let cache_dir = Path::new(ASSET_CACHE);
|
let cache_dir = Path::new(ASSET_CACHE);
|
||||||
fs::create_dir_all(cache_dir)?;
|
fs::create_dir_all(cache_dir)?;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
use crate::globaluniform::GlobalUniform;
|
use crate::globaluniform::GlobalUniform;
|
||||||
|
|
||||||
|
// TODO: build script?
|
||||||
/// Basic wgsl preprocesser
|
/// Basic wgsl preprocesser
|
||||||
pub(crate) fn preprocess_shader(
|
pub(crate) fn preprocess_shader(
|
||||||
shader: &str,
|
shader: &str,
|
||||||
|
|
|
@ -152,6 +152,7 @@ pub struct UiInstance {
|
||||||
|
|
||||||
/// What texture to use for this instance
|
/// What texture to use for this instance
|
||||||
pub texture_index: [u32; 2],
|
pub texture_index: [u32; 2],
|
||||||
|
|
||||||
/// Fade parameter between textures
|
/// Fade parameter between textures
|
||||||
pub texture_fade: f32,
|
pub texture_fade: f32,
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue