add EXP macro mask arg

This commit is contained in:
espes 2015-08-14 10:03:17 +10:00
parent 7356590230
commit 81f495ef8e
2 changed files with 3 additions and 1 deletions

View File

@ -292,6 +292,8 @@ static GLuint create_gl_shader(GLenum gl_shader_type,
NV2A_GL_DGROUP_BEGIN("Creating new %s", name);
NV2A_DPRINTF("compile new %s, code:\n%s\n", name, code);
GLuint shader = glCreateShader(gl_shader_type);
glShaderSource(shader, 1, &code, 0);
glCompileShader(shader);

View File

@ -698,7 +698,7 @@ static const char* vsh_header =
" return vec4(inversesqrt(abs(src)));\n"
"}\n"
"\n"
"#define EXP(dest, src) dest.mask = _EXP(_in(src).x).mask\n"
"#define EXP(dest, mask, src) dest.mask = _EXP(_in(src).x).mask\n"
"vec4 _EXP(float src)\n"
"{\n"
" return vec4(exp2(src));\n"