Skip to content

Commit

Permalink
[vent-ui] smaller changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Snowiiii committed Jul 27, 2024
1 parent 09a930c commit cb5218a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/vent-runtime/src/render/d3/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ impl Renderer for Renderer3D {

let model = concat!(
env!("CARGO_MANIFEST_DIR"),
"/assets/models/test/bistro_outside.glb"
"/assets/models/test/Sponza-GLTF/Sponza.gltf"
);

// Sponza-GLTF/Sponza.gltf
Expand Down
4 changes: 2 additions & 2 deletions crates/vent-ui/assets/shaders/gui.frag
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#version 450 core
layout(location = 0) out vec4 color;
layout(location = 0) out vec4 outColor;
layout(set = 0, binding = 0) uniform sampler2D sTexture;
layout(location = 0) in struct {
vec4 Color;
vec2 UV;
} In;
void main() {
color = vec4(255); //In.Color * texture(sTexture, In.UV.st)
outColor = In.Color * texture(sTexture, In.UV.st);
}
Binary file modified crates/vent-ui/assets/shaders/gui.frag.spv
Binary file not shown.
2 changes: 1 addition & 1 deletion crates/vent-ui/src/font/ab_glyph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ impl AbGlyphLoader {
glyphs.push(glyph);
characters.push(character);
}
dbg!(characters.len());
log::debug!("Loaded Charaters: {}", characters.len());

let outlined: Vec<_> = glyphs
.into_iter()
Expand Down
2 changes: 1 addition & 1 deletion crates/vent-ui/src/font/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl Font {

let characters = &self.characters;

if !self.buffer_cache.contains_key(&text) {
if !self.buffer_cache.contains_key(&text) { // Todo, Support changing colors for same text
let mut batched_vertices = Vec::new();
// Loop through each character in the text
let mut current_x = x;
Expand Down

0 comments on commit cb5218a

Please sign in to comment.