lots of corrections to VEFontCache, still no letters on screen

Something is either wrong with the sokol_gfx rendering setup or its a really dumb checkbox/uv value
This commit is contained in:
2024-06-14 17:00:06 -04:00
parent 3b9e08794a
commit 87bc31636e
5 changed files with 80 additions and 60 deletions

View File

@ -210,10 +210,18 @@ render :: proc()
sokol_gfx.apply_pipeline( screen_pipeline )
fs_uniform := Ve_Draw_Text_Fs_Params { down_sample = 0, colour = {1, 1, 1, 1} }
sokol_gfx.apply_uniforms( ShaderStage.FS, SLOT_ve_blit_atlas_fs_params, Range { & fs_uniform, size_of(fs_uniform) })
src_rt := atlas_rt_color
src_rt := draw_call.pass == .Target_Uncached ? glyph_rt_color : atlas_rt_color
fs_uniform := Ve_Draw_Text_Fs_Params {
// down_sample = draw_call.pass == .Target_Uncached ? 1 : 0,
colour = {1, 1, 1, 1},
}
if draw_call.pass == .Target_Uncached {
fs_uniform.down_sample = 1
src_rt = glyph_rt_color
}
sokol_gfx.apply_uniforms( ShaderStage.FS, SLOT_ve_blit_atlas_fs_params, Range { & fs_uniform, size_of(fs_uniform) })
sokol_gfx.apply_bindings(Bindings {
vertex_buffers = {