Re #387 Try forcing the pit wall state to be opaque
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@4022 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 59b616bab8e71e268aaa08a6f9cc359b117ceadf Former-commit-id: f0901b8b1a86d863dbcbaa36ffb99bb3de60931c
This commit is contained in:
parent
9bb32f3efe
commit
6119db670c
1 changed files with 4 additions and 3 deletions
|
@ -39,7 +39,7 @@
|
||||||
|
|
||||||
// Uncomment to enable support for PNG logos for normal pit-building wall
|
// Uncomment to enable support for PNG logos for normal pit-building wall
|
||||||
// (does not apply to the no-building pit, with the low wall, which already supports PNG).
|
// (does not apply to the no-building pit, with the low wall, which already supports PNG).
|
||||||
//#define PNG_LOGO_SUPPORT 1
|
#define PNG_LOGO_SUPPORT 1
|
||||||
|
|
||||||
// Some public global variables.
|
// Some public global variables.
|
||||||
int grWrldX;
|
int grWrldX;
|
||||||
|
@ -278,9 +278,10 @@ void grCustomizePits(void)
|
||||||
// If no car in the pit, or logo file not found, hope for the .rgb in data/textures.
|
// If no car in the pit, or logo file not found, hope for the .rgb in data/textures.
|
||||||
if (!st) {
|
if (!st) {
|
||||||
snprintf(buf, sizeof(buf), "data/textures");
|
snprintf(buf, sizeof(buf), "data/textures");
|
||||||
const std::string strRGBLogoFileName = strLogoFileName + ".rgb";
|
const std::string strRGBLogoFileName = strLogoFileName + ".rgb";
|
||||||
st = grSsgLoadTexStateEx(strRGBLogoFileName.c_str(), buf, FALSE, FALSE, TRUE);
|
st = grSsgLoadTexStateEx(strRGBLogoFileName.c_str(), buf, FALSE, FALSE, TRUE);
|
||||||
}
|
}
|
||||||
|
st->setOpaque();
|
||||||
reinterpret_cast<ssgSimpleState*>(st)->setShininess(50);
|
reinterpret_cast<ssgSimpleState*>(st)->setShininess(50);
|
||||||
|
|
||||||
// Pit wall texturing : the loaded 'logo*.rgb/.png' image file is supposed to consist
|
// Pit wall texturing : the loaded 'logo*.rgb/.png' image file is supposed to consist
|
||||||
|
|
Loading…
Reference in a new issue