also ifdef my debugging code which only works on windows

This commit is contained in:
zeromus 2009-02-25 09:58:14 +00:00
parent b804bd6ebc
commit 2ac6e00def
1 changed files with 2 additions and 0 deletions

View File

@ -298,6 +298,7 @@ struct Shader
dst.color.components.g = modulate_table[texColor.components.g][materialColor.components.g];
dst.color.components.b = modulate_table[texColor.components.b][materialColor.components.b];
dst.color.components.a = modulate_table[texColor.components.a][materialColor.components.a];
#ifdef _MSC_VER
if(GetAsyncKeyState(VK_SHIFT)) {
//debugging tricks
dst.color = materialColor;
@ -307,6 +308,7 @@ struct Shader
dst.color.components.a = alpha;
}
}
#endif
break;
case 1: //decal
u = invu/invw;