diff --git a/include/bgfx.h b/include/bgfx.h index 1c31e8855..73db1063c 100644 --- a/include/bgfx.h +++ b/include/bgfx.h @@ -162,17 +162,14 @@ /// #define BGFX_TEXTURE_NONE UINT32_C(0x00000000) -#define BGFX_TEXTURE_U_REPEAT UINT32_C(0x00000000) #define BGFX_TEXTURE_U_MIRROR UINT32_C(0x00000001) #define BGFX_TEXTURE_U_CLAMP UINT32_C(0x00000002) #define BGFX_TEXTURE_U_SHIFT 0 #define BGFX_TEXTURE_U_MASK UINT32_C(0x00000003) -#define BGFX_TEXTURE_V_REPEAT UINT32_C(0x00000000) #define BGFX_TEXTURE_V_MIRROR UINT32_C(0x00000010) #define BGFX_TEXTURE_V_CLAMP UINT32_C(0x00000020) #define BGFX_TEXTURE_V_SHIFT 4 #define BGFX_TEXTURE_V_MASK UINT32_C(0x00000030) -#define BGFX_TEXTURE_W_REPEAT UINT32_C(0x00000000) #define BGFX_TEXTURE_W_MIRROR UINT32_C(0x00000100) #define BGFX_TEXTURE_W_CLAMP UINT32_C(0x00000200) #define BGFX_TEXTURE_W_SHIFT 8 diff --git a/src/common.sh b/src/common.sh index 350f67769..ea719d645 100644 --- a/src/common.sh +++ b/src/common.sh @@ -8,6 +8,8 @@ #include "bgfx_shader.sh" +uniform vec4 u_viewRect; +uniform vec4 u_viewTexel; uniform mat4 u_view; uniform mat4 u_viewProj; uniform mat4 u_model; @@ -15,5 +17,6 @@ uniform mat4 u_modelView; uniform mat4 u_modelViewProj; uniform mat4 u_modelViewProjX; uniform mat4 u_viewProjX; +uniform float u_alphaRef; #endif // __SHADER_COMMON_H__