Changeset 10250 in orxonox.OLD for branches/heathaze/src/lib/graphics/effects/heat_haze_manager.cc
- Timestamp:
- Jan 17, 2007, 1:24:48 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/heathaze/src/lib/graphics/effects/heat_haze_manager.cc
r10214 r10250 29 29 { 30 30 this->registerObject(this, HeatHazeManager::_objectList); 31 this->init(); 31 32 } 32 33 … … 49 50 50 51 this->heatShader.activateShader(); 51 ParticlesShot = new Shader::Uniform(heatShader, "ParticlesShot");52 FinalRender = new Shader::Uniform(heatShader, "FinalRender");52 Shader::Uniform(heatShader, "ParticlesShot").set(0); 53 Shader::Uniform(heatShader, "FinalRender").set(1); 53 54 parameters = new Shader::Uniform(heatShader, "parameters"); 55 //parameters->set(1.0f/offScreenWidth, 1.0f/offScreenHeight, scale, scale); 54 56 this->heatShader.deactivateShader(); 55 57 … … 62 64 void HeatHazeManager::acquireMask() 63 65 { 66 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 67 64 68 for (ObjectList<HeatParticles>::const_iterator it = HeatParticles::objectList().begin(); 65 69 it != HeatParticles::objectList().end(); 66 70 ++it) 67 71 { 68 //TODO: Let all the HeatParticles draw the particles in a temporary buffer 72 //TODO: Let all the HeatParticles draw the particles in a temporary buffer (texture unit 1) 69 73 } 70 74 75 // TODO: Copy the current framebuffer into a texture (particleMask) 76 //particleMask. 71 77 } 72 78
Note: See TracChangeset
for help on using the changeset viewer.