|
|
@ -375,7 +375,9 @@ public:
|
|
|
|
setRenderTargetImplementation(osg::Camera::FRAME_BUFFER_OBJECT);
|
|
|
|
setRenderTargetImplementation(osg::Camera::FRAME_BUFFER_OBJECT);
|
|
|
|
setReferenceFrame(osg::Camera::RELATIVE_RF);
|
|
|
|
setReferenceFrame(osg::Camera::RELATIVE_RF);
|
|
|
|
|
|
|
|
|
|
|
|
setCullMask(Mask_Effect|Mask_Scene|Mask_Terrain|Mask_Actor|Mask_ParticleSystem|Mask_Sky|Mask_Player|Mask_Lighting);
|
|
|
|
bool reflectActors = Settings::Manager::getBool("reflect actors", "Water");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setCullMask(Mask_Effect|Mask_Scene|Mask_Terrain|Mask_ParticleSystem|Mask_Sky|Mask_Player|Mask_Lighting|(reflectActors ? Mask_Actor : 0));
|
|
|
|
setNodeMask(Mask_RenderToTexture);
|
|
|
|
setNodeMask(Mask_RenderToTexture);
|
|
|
|
|
|
|
|
|
|
|
|
unsigned int rttSize = Settings::Manager::getInt("rtt size", "Water");
|
|
|
|
unsigned int rttSize = Settings::Manager::getInt("rtt size", "Water");
|
|
|
|