OSG_GRAPH : Temporary hack to deactivate EM.

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@5681 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 08c4871dbfc9a48ed9a11609537e314cefa43299
Former-commit-id: 6ef9ac232a2edac714354ba39a71ab2aaac5e4e7
This commit is contained in:
rvlander 2013-08-15 14:59:54 +00:00
parent 0a6a36648d
commit 07ba303f6c
2 changed files with 6 additions and 3 deletions

View file

@ -225,7 +225,7 @@ osg::Node *SDCar::loadCar(tCarElt *car)
this->shader = new SDCarShader(pCar.get(),this); this->shader = new SDCarShader(pCar.get(),this);
this->reflectionMappingMethod = REFLECTIONMAPPING_STATIC; this->reflectionMappingMethod = REFLECTIONMAPPING_OFF;
this->reflectionMapping = new SDReflectionMapping(this); this->reflectionMapping = new SDReflectionMapping(this);

View file

@ -131,8 +131,11 @@ SDReflectionMapping::SDReflectionMapping(SDCar *c):car(c){
} }
SDScreens * screens = (SDScreens*)getScreens();
screens->registerViewDependantPreRenderNode(this->getCamerasRoot());
//ACTIVATE to enable Environment MApping <= temporary hack.
//SDScreens * screens = (SDScreens*)getScreens();
//screens->registerViewDependantPreRenderNode(this->getCamerasRoot());
//cameras[4]->setNodeMask(1); //cameras[4]->setNodeMask(1);