Changeset 10250 in orxonox.OLD for branches/heathaze
- Timestamp:
- Jan 17, 2007, 1:24:48 PM (18 years ago)
- Location:
- branches/heathaze/src/lib/graphics/effects
- Files:
-
- 2 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 -
branches/heathaze/src/lib/graphics/effects/heat_haze_manager.h
r10214 r10250 30 30 31 31 private: 32 Texture frameBuffer;32 Texture particleMask; 33 33 34 34 Shader heatShader; 35 35 36 36 // uniforms 37 Shader::Uniform* ParticlesShot; //!< uniform that is used for the camera position 38 Shader::Uniform* FinalRender; //!< uniform that is used for the camera position 39 Shader::Uniform* parameters; //!< uniform that is used for the camera position 37 Shader::Uniform* parameters; 40 38 41 39 };
Note: See TracChangeset
for help on using the changeset viewer.