- Timestamp:
- 04/24/06 15:44:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/GameToolsRaytraceDemo/include/GameToolsRaytraceDemo.h
r788 r807 65 65 if (mInputDevice->isKeyDown(KC_SUBTRACT)) 66 66 { 67 cauintens -= 1;67 cauintens -= 0.5; 68 68 cauintens = std::max(cauintens, 1.0f); 69 69 float intensity = pow( cauintens / 100.0f, 2 ); … … 72 72 if (mInputDevice->isKeyDown(KC_ADD)) 73 73 { 74 cauintens += 1;74 cauintens += 0.5; 75 75 cauintens = std::min(cauintens, 100.0f); 76 76 float intensity = pow( cauintens / 100.0f, 2 ); … … 79 79 if (mInputDevice->isKeyDown(KC_MULTIPLY)) 80 80 { 81 causize = std::max(causize - 0. 2, 0.0);81 causize = std::max(causize - 0.1, 0.0); 82 82 Vparams->setNamedConstant("CauSpriteSize", causize); 83 83 } 84 84 if (mInputDevice->isKeyDown(KC_DIVIDE)) 85 85 { 86 causize = causize + 0. 2;86 causize = causize + 0.1; 87 87 Vparams->setNamedConstant("CauSpriteSize", causize); 88 88 } … … 245 245 Entity* aluSphere = mSceneMgr->createEntity("aluSphere", "head.mesh"); 246 246 247 kupola->setCastShadows(false); 247 248 //lod 248 249 //MeshPtr amesh = athene->getMesh(); … … 250 251 //distances.push_back(1); 251 252 //distances.push_back(2); 252 // //distances.push_back(3);253 // //distances.push_back(4);253 //distances.push_back(3); 254 //distances.push_back(4); 254 255 ////distances.push_back(5); 255 256 //amesh->generateLodLevels(distances,ProgressiveMesh::VertexReductionQuota::VRQ_PROPORTIONAL,0.6); … … 265 266 kupolaNode->attachObject( kupola ); 266 267 kupolaNode->scale(25,21,25); 268 //kupolaNode->scale(2,2,2); 269 //kupolaNode->setPosition(0,100,0); 267 270 SceneNode* atheneNode = rootNode->createChildSceneNode("athene"); 268 271 atheneNode->attachObject(athene); … … 335 338 OgreIlluminationManager::getSingleton().addSharedRuns(sharedruns); 336 339 337 for(int i = 0; i < 2; i++)340 for(int i = 0; i < kupola->getNumSubEntities(); i++) 338 341 { 339 342 OgreTechniqueGroup* group = new OgreTechniqueGroup(); … … 421 424 rend, 422 425 group); 423 OgreDepthShadowRecieverRenderTechnique* shadowtechn =426 /* OgreDepthShadowRecieverRenderTechnique* shadowtechn = 424 427 new OgreDepthShadowRecieverRenderTechnique(1, 425 428 "GameTools/ShadowMap/ShadowVS", … … 428 431 rend, 429 432 group 430 ); 433 );*/ 431 434 432 group->addRenderTechnique(shadowtechn);435 //group->addRenderTechnique(shadowtechn); 433 436 group->addRenderTechnique(techn); 434 437 group->addRenderTechnique(techn2); … … 463 466 "GameTools/Cau", 464 467 0, 465 false,468 true, 466 469 true, 467 470 mat->getTechnique(0)->getPass(0), … … 497 500 group); 498 501 499 OgreDepthShadowRecieverRenderTechnique* shadowtechn =502 /* OgreDepthShadowRecieverRenderTechnique* shadowtechn = 500 503 new OgreDepthShadowRecieverRenderTechnique(1, 501 504 "GameTools/ShadowMap/ShadowVS", … … 504 507 rend, 505 508 group 506 ); 507 508 group->addRenderTechnique(shadowtechn);509 );*/ 510 511 // group->addRenderTechnique(shadowtechn); 509 512 group->addRenderTechnique(techn); 510 513 group->addRenderTechnique(techn2);
Note: See TracChangeset
for help on using the changeset viewer.