mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-10 15:21:44 +00:00
fix black door bug
This commit is contained in:
parent
274ce133a6
commit
053a51c3db
1 changed files with 8 additions and 4 deletions
|
@ -266,10 +266,13 @@ static const char *fallbackLightallShader_vp =
|
|||
"lMatrix * position).xyz;\r\n\tvar_Normal = (u_ModelMatrix * vec4(normal,"
|
||||
" 0.0)).xyz;\r\n\r\n #if defined(USE_NORMALMAP)\r\n\tvar_Tangent = (u_Mod"
|
||||
"elMatrix * vec4(tangent, 0.0)).xyz;\r\n\tvar_Bitangent = (u_ModelMatrix * v"
|
||||
"ec4(bitangent, 0.0)).xyz;\r\n #endif\r\n#else\r\n\tvar_Position = positio"
|
||||
"n.xyz;\r\n\tvar_Normal = normal;\r\n\r\n #if defined(USE_NORMALMAP)\r\n"
|
||||
"\tvar_Tangent = tangent;\r\n\tvar_Bitangent = bitangent;\r\n #endif\r\n#"
|
||||
"endif\r\n\r\n\tvar_LightDirection = attr_LightDirection;\r\n}\r\n";
|
||||
"ec4(bitangent, 0.0)).xyz;\r\n #endif\r\n\r\n #if defined(USE_LIGHTMAP)\r"
|
||||
"\n\tvar_LightDirection = (u_ModelMatrix * vec4(attr_LightDirection, 0.0)).x"
|
||||
"yz;\r\n #else\r\n\tvar_LightDirection = attr_LightDirection;\r\n #endif\r"
|
||||
"\n#else\r\n\tvar_Position = position.xyz;\r\n\tvar_Normal = normal;\r\n"
|
||||
"\r\n #if defined(USE_NORMALMAP)\r\n\tvar_Tangent = tangent;\r\n\tvar_Bit"
|
||||
"angent = bitangent;\r\n #endif\r\n\r\n \tvar_LightDirection = attr_LightD"
|
||||
"irection;\r\n#endif\r\n}\r\n";
|
||||
|
||||
static const char *fallbackLightallShader_fp =
|
||||
"uniform sampler2D u_DiffuseMap;\r\n\r\n#if defined(USE_LIGHTMAP)\r\nuniform"
|
||||
|
@ -666,6 +669,7 @@ static const char *fallbackCalcLevels4xShader_fp =
|
|||
" 1.0f);\r\n}\r\n";
|
||||
|
||||
|
||||
|
||||
static void GLSL_PrintInfoLog(GLhandleARB object, qboolean developerOnly)
|
||||
{
|
||||
char *msg;
|
||||
|
|
Loading…
Reference in a new issue