Minor edits

master
Mark 2024-01-21 12:41:31 -08:00
parent e61c580247
commit 7820458404
Signed by: Mark
GPG Key ID: C6D63995FE72FD80
4 changed files with 17 additions and 2 deletions

View File

@ -1,7 +1,6 @@
# Specific projects
## Currently working on:
- first: fix animation transition timings
- first: fix particles & physics
- clickable buttons
- planet outfitter
@ -218,6 +217,7 @@
- Naming: atlas, sprite, image, frame, texture
- Outfits may not change unless you've landed. They might not change ever for CC ships!
- All angle adjustments happen in content & shaders
- Reserved texture: index zero
## Ideas

View File

@ -17,7 +17,20 @@ use winit::{
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);
fs::create_dir_all(cache_dir)?;

View File

@ -1,5 +1,6 @@
use crate::globaluniform::GlobalUniform;
// TODO: build script?
/// Basic wgsl preprocesser
pub(crate) fn preprocess_shader(
shader: &str,

View File

@ -152,6 +152,7 @@ pub struct UiInstance {
/// What texture to use for this instance
pub texture_index: [u32; 2],
/// Fade parameter between textures
pub texture_fade: f32,