- Timestamp:
- 10/11/06 16:08:34 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Illum/Ogre
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/programs/GameTools_Phong.hlsl
r1598 r1611 60 60 float3 pos = IN.wPos; 61 61 62 float M = 4;62 float M = 1; 63 63 64 64 float3 lightpositions[8]; … … 92 92 L = normalize(L); 93 93 float3 H = normalize(L + V); 94 float lightscale = 3;94 float lightscale = 1.0; 95 95 float4 spec = specular * lightcolors[i] * pow(dot(H, N), shininess) * lightscale; 96 96 float4 diff = diffuse * lightcolors[i] * abs(dot(L, N)) * lightscale; -
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/Glow.material
r1590 r1611 51 51 param_named_auto height viewport_height 52 52 //param_named cutValue float 10.0 53 param_named cutValue float 10. 054 param_named timeBlur float 0. 453 param_named cutValue float 10.5 54 param_named timeBlur float 0.5 55 55 56 56 } -
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/Ogre.material
r777 r1611 48 48 { 49 49 texture dirt01.jpg 50 colour_op_ex add src_texture src_current51 colour_op_multipass_fallback one one50 //colour_op_ex add src_texture src_current 51 //colour_op_multipass_fallback one one 52 52 } 53 53 } -
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/diffscene.material
r1590 r1611 192 192 texture talaj.jpg 193 193 tex_coord_set 0 194 colour_op modulate194 colour_op replace 195 195 196 196 … … 207 207 cull_hardware none 208 208 209 ambient 1 0.408055 0.07 0. 79488210 diffuse 1 0.408055 0.07 0. 79488209 ambient 1 0.408055 0.07 0.9 210 diffuse 1 0.408055 0.07 0.9 211 211 specular 0 0 0 0 212 212 emissive 0.3 0.15 0.03 -
GTP/trunk/App/Demos/Illum/Ogre/src/DiffuseTest/include/DiffuseTest.h
r1598 r1611 24 24 */ 25 25 26 27 26 #include "ExampleApplication.h" 28 27 #include "OgreIlluminationManager.h" … … 30 29 float causize = 10; 31 30 float cauintens = 40; 32 31 int scene = 1; 33 32 // Listener class for frame updates 34 33 class RaytraceDemoListener : public ExampleFrameListener … … 321 320 { 322 321 323 //createPostproc();322 //createPostproc(); 324 323 325 324 OgreIlluminationManager::getSingleton().setMainCamera(mCamera); … … 335 334 mCamera->setNearClipDistance(0.1); 336 335 337 //createScene1(); 336 if(scene == 1) 337 createScene1(); 338 else 338 339 createScene2(); 339 340 … … 355 356 SceneNode* rootNode = mSceneMgr->getRootSceneNode(); 356 357 357 Entity* object = mSceneMgr->createEntity("object", " athene.mesh");358 Entity* object = mSceneMgr->createEntity("object", "chinaman.mesh"); 358 359 object->setMaterialName("GameTools/Diffuse/use"); 359 360 //object->setMaterialName("GameTools/Diffuse2"); 360 361 objectNode = rootNode->createChildSceneNode(); 361 362 objectNode->attachObject(object); 362 objectNode->scale(0.05,0.05,0.05); 363 objectNode->setPosition(0,4,0); 363 // objectNode->scale(0.05,0.05,0.05); 364 objectNode->scale(3,3,3); 365 // objectNode->setPosition(0,4,0); 364 366 objectNode->_updateBounds(); 365 367 … … 591 593 mRoot->addFrameListener(&OgreIlluminationManager::getSingleton()); 592 594 mRoot->addFrameListener(mFrameListener); 595 if(scene == 2) 593 596 mRoot->addFrameListener(reflListener); 594 597
Note: See TracChangeset
for help on using the changeset viewer.