summaryrefslogtreecommitdiffstats
path: root/src/fakerw/fake.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-07 12:48:57 +0200
committeraap <aap@papnet.eu>2020-05-07 12:48:57 +0200
commit5c30b3a188c768c22afff13eb118dea7fd541a6c (patch)
treed533a030b5ca6374240e0f09a3e366cfd2d8996c /src/fakerw/fake.cpp
parentdont hardcode first vehicle ID; little fix for roadblocks (diff)
downloadre3-5c30b3a188c768c22afff13eb118dea7fd541a6c.tar
re3-5c30b3a188c768c22afff13eb118dea7fd541a6c.tar.gz
re3-5c30b3a188c768c22afff13eb118dea7fd541a6c.tar.bz2
re3-5c30b3a188c768c22afff13eb118dea7fd541a6c.tar.lz
re3-5c30b3a188c768c22afff13eb118dea7fd541a6c.tar.xz
re3-5c30b3a188c768c22afff13eb118dea7fd541a6c.tar.zst
re3-5c30b3a188c768c22afff13eb118dea7fd541a6c.zip
Diffstat (limited to '')
-rw-r--r--src/fakerw/fake.cpp20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/fakerw/fake.cpp b/src/fakerw/fake.cpp
index e569dea9..f1531490 100644
--- a/src/fakerw/fake.cpp
+++ b/src/fakerw/fake.cpp
@@ -756,6 +756,7 @@ RwCamera *RwCameraForAllClumpsNotInFrustum(RwCamera *camera, RwInt32 numClumps,
RwBool RpMatFXPluginAttach( void ) { registerMatFXPlugin(); return true; }
RpAtomic *RpMatFXAtomicEnableEffects( RpAtomic *atomic ) { MatFX::enableEffects(atomic); return atomic; }
+RpMatFXMaterialFlags RpMatFXMaterialGetEffects( const RpMaterial *material ){ return (RpMatFXMaterialFlags)MatFX::getEffects(material); }
RpMaterial *RpMatFXMaterialSetEffects( RpMaterial *material, RpMatFXMaterialFlags flags ) { MatFX::setEffects(material, (uint32)flags); return material; }
RpMaterial *RpMatFXMaterialSetupEnvMap( RpMaterial *material, RwTexture *texture, RwFrame *frame, RwBool useFrameBufferAlpha, RwReal coef ) {
MatFX *mfx = MatFX::get(material);
@@ -764,8 +765,23 @@ RpMaterial *RpMatFXMaterialSetupEnvMap( RpMaterial *material, RwTexture *texture
mfx->setEnvCoefficient(coef);
return material;
}
-
-
+RpMaterial *RpMatFXMaterialSetEnvMapFrame( RpMaterial *material, RwFrame *frame )
+{
+ MatFX *mfx = MatFX::get(material);
+ mfx->setEnvFrame(frame);
+ return material;
+}
+RpMaterial *RpMatFXMaterialSetEnvMapCoefficient( RpMaterial *material, RwReal coef )
+{
+ MatFX *mfx = MatFX::get(material);
+ mfx->setEnvCoefficient(coef);
+ return material;
+}
+RwReal RpMatFXMaterialGetEnvMapCoefficient( const RpMaterial *material )
+{
+ MatFX *mfx = MatFX::get(material);
+ return mfx->getEnvCoefficient();
+}