Added missing predefined uniforms. Removed default state texture flags.
This commit is contained in:
parent
1bb60c30f6
commit
f116ba0e10
@ -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
|
||||
|
@ -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__
|
||||
|
Loading…
Reference in New Issue
Block a user