From 9ded9412a868a7509dd55678fc76ab96e5d5a1c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Mon, 24 Aug 2015 23:00:17 -0700 Subject: [PATCH] Fixed alpharef. --- src/bgfx_shader.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bgfx_shader.sh b/src/bgfx_shader.sh index 5dd052405b..8b8948ce06 100644 --- a/src/bgfx_shader.sh +++ b/src/bgfx_shader.sh @@ -314,7 +314,8 @@ uniform mat4 u_invViewProj; uniform mat4 u_model[BGFX_CONFIG_MAX_BONES]; uniform mat4 u_modelView; uniform mat4 u_modelViewProj; -uniform float u_alphaRef; +uniform vec4 u_alphaRef4; +#define u_alphaRef u_alphaRef4.x #endif // __cplusplus