Showing the changes to interface/src/ParticleSystem.cpp (1 of 1 file). Show all
Unified · Split
| @@ -147,24 +147,6 @@ void ParticleSystem::killParticle(int p) { · 146 unmodified lines | ||
| 147 | 147 | _numParticles --; |
| 148 | 148 | } |
| 149 | 149 | |
| 150 | −/* | |
| 151 | −void ParticleSystem::setOrangeBlueColorPalette() { | |
| 152 | − | |
| 153 | − for (unsigned int p = 0; p < _numParticles; p++) { | |
| 154 | − | |
| 155 | − float radian = ((float)p / (float)_numParticles) * PI_TIMES_TWO; | |
| 156 | − float wave = sinf(radian); | |
| 157 | − | |
| 158 | − float red = 0.5f + 0.5f * wave; | |
| 159 | − float green = 0.3f + 0.3f * wave; | |
| 160 | − float blue = 0.2f - 0.2f * wave; | |
| 161 | − float alpha = 1.0f; | |
| 162 | − | |
| 163 | − _particle[p].color = glm::vec4(red, green, blue, alpha); | |
| 164 | − } | |
| 165 | −} | |
| 166 | −*/ | |
| 167 | − | |
| 168 | 150 | |
| 169 | 151 | void ParticleSystem::setParticleAttributes(int emitterIndex, ParticleAttributes attributes) { |
| 170 | 152 | |