Added parsing of the nodraw surfaceparm (should be on light shaders)
This commit is contained in:
parent
13b971d1a5
commit
25dfc6080f
1 changed files with 4 additions and 1 deletions
|
@ -607,7 +607,10 @@ char *ParseShader (char *data, shader_t *shader)
|
||||||
GET_SAFE_TOKEN;
|
GET_SAFE_TOKEN;
|
||||||
normalSpecularStage(shader,command, com_token);
|
normalSpecularStage(shader,command, com_token);
|
||||||
} else if (!strcmp(command,"surfaceparm")) {
|
} else if (!strcmp(command,"surfaceparm")) {
|
||||||
data = COM_SkipLine(data);
|
GET_SAFE_TOKEN;
|
||||||
|
if (!strcmp(com_token, "nodraw")) {
|
||||||
|
shader->flags |= SURF_NODRAW;
|
||||||
|
}
|
||||||
} else if (!strcmp(command,"nomipmaps")) {
|
} else if (!strcmp(command,"nomipmaps")) {
|
||||||
shader->mipmap = false;
|
shader->mipmap = false;
|
||||||
} else if (!strcmp(command,"noshadow")) {
|
} else if (!strcmp(command,"noshadow")) {
|
||||||
|
|
Loading…
Reference in a new issue