PS2-like MatFX from skygfx

This commit is contained in:
aap 2019-06-28 23:31:23 +02:00
parent 38a7b74b1a
commit dd3f1f88ac
2 changed files with 4 additions and 0 deletions

View File

@ -77,3 +77,5 @@ enum Config {
#define NO_MOVIES #define NO_MOVIES
//#define USE_MY_DOCUMENTS //#define USE_MY_DOCUMENTS
#define NASTY_GAME #define NASTY_GAME
#define PS2_MATFX

View File

@ -1006,7 +1006,9 @@ CVehicleModelInfo::SetEnvironmentMapCB(RpMaterial *material, void *data)
if(RpMaterialGetTexture(material) == 0) if(RpMaterialGetTexture(material) == 0)
RpMaterialSetTexture(material, gpWhiteTexture); RpMaterialSetTexture(material, gpWhiteTexture);
RpMatFXMaterialSetEffects(material, rpMATFXEFFECTENVMAP); RpMatFXMaterialSetEffects(material, rpMATFXEFFECTENVMAP);
#ifndef PS2_MATFX
spec *= 0.5f; // Tone down a bit for PC spec *= 0.5f; // Tone down a bit for PC
#endif
RpMatFXMaterialSetupEnvMap(material, (RwTexture*)data, pMatFxIdentityFrame, false, spec); RpMatFXMaterialSetupEnvMap(material, (RwTexture*)data, pMatFxIdentityFrame, false, spec);
} }
return material; return material;