render update

This commit is contained in:
2023-05-22 05:08:08 +00:00
parent 49271b4a5d
commit c16a0332a5
10 changed files with 63 additions and 29 deletions

View File

@@ -4,6 +4,7 @@
#define GLFW_INCLUDE_NONE
#include <GLFW/glfw3.h>
#include "sokol/sokol_gfx.h"
struct uv_n {
unsigned short u;
@@ -15,4 +16,13 @@ struct st_n {
struct uv_n t;
};
static sg_blend_state blend_trans = {
.enabled = true,
.src_factor_rgb = SG_BLENDFACTOR_SRC_ALPHA,
.dst_factor_rgb = SG_BLENDFACTOR_ONE_MINUS_SRC_ALPHA,
.src_factor_alpha = SG_BLENDFACTOR_SRC_ALPHA,
.src_factor_alpha = SG_BLENDFACTOR_ONE_MINUS_SRC_ALPHA
};
#endif