diff options
| author | LLLL Colonq <llll@colonq> | 2026-04-26 22:56:52 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-04-26 22:59:25 -0400 |
| commit | d943ba194b3cfab18354e96f7be2c1e434d6c073 (patch) | |
| tree | 786b7c92f3d9abc6a147a59e440982306fc77f55 /crates/renderer/src/assets.rs | |
| parent | 4a22d2573cd4014c3cc0ed784dd2e9d6bed7fb67 (diff) | |
Update
Diffstat (limited to 'crates/renderer/src/assets.rs')
| -rw-r--r-- | crates/renderer/src/assets.rs | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/crates/renderer/src/assets.rs b/crates/renderer/src/assets.rs index bfcaa0d..4eb681a 100644 --- a/crates/renderer/src/assets.rs +++ b/crates/renderer/src/assets.rs @@ -3,6 +3,8 @@ use teleia::*; pub struct Assets { pub font: font::Bitmap, pub shader_flat: shader::Shader, + pub shader_flat_noflip: shader::Shader, + pub shader_acs: shader::Shader, pub shader_scene: shader::Shader, pub shader_color: shader::Shader, pub shader_tcg: shader::Shader, @@ -13,17 +15,28 @@ pub struct Assets { pub texture_mod: texture::Texture, pub texture_operatop: texture::Texture, pub texture_operabottom: texture::Texture, + pub texture_clippyborder: texture::Texture, } impl Assets { pub fn new(ctx: &context::Context) -> Self { Self { - font: font::Bitmap::new(ctx), + font: font::Bitmap::default(ctx), shader_flat: shader::Shader::new( ctx, include_str!("assets/shaders/flat/vert.glsl"), include_str!("assets/shaders/flat/frag.glsl"), ), + shader_flat_noflip: shader::Shader::new( + ctx, + include_str!("assets/shaders/flat_noflip/vert.glsl"), + include_str!("assets/shaders/flat_noflip/frag.glsl"), + ), + shader_acs: shader::Shader::new( + ctx, + include_str!("assets/shaders/acs/vert.glsl"), + include_str!("assets/shaders/acs/frag.glsl"), + ), shader_scene: shader::Shader::new( ctx, include_str!("assets/shaders/scene/vert.glsl"), @@ -58,6 +71,7 @@ impl Assets { texture_mod: texture::Texture::new(ctx, include_bytes!("assets/textures/mod.png")), texture_operatop: texture::Texture::new(ctx, include_bytes!("assets/textures/operatop.png")), texture_operabottom: texture::Texture::new(ctx, include_bytes!("assets/textures/operabottom.png")), + texture_clippyborder: texture::Texture::new(ctx, include_bytes!("assets/textures/clippyborder.png")), } } } |
