mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 10:10:01 +00:00
PS2-like MatFX from skygfx
This commit is contained in:
parent
38a7b74b1a
commit
dd3f1f88ac
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue