Showing the changes to libraries/render-utils/src/DeferredLightingEffect.cpp (1 of 5 files). Show all
Unified · Split
| @@ -435,3 +435,9 @@ void DeferredLightingEffect::loadLightProgram(const char* fragSource, bool limit · 434 unmodified lines | ||
| 435 | 435 | locations.radius = program.uniformLocation("radius"); |
| 436 | 436 | program.release(); |
| 437 | 437 | } |
| 438 | + | |
| 439 | +void DeferredLightingEffect::setAmbientLightMode(int preset) { | |
| 440 | + if ((preset >= -1) && (preset < NUM_PRESET)) { | |
| 441 | + _ambientLightMode = preset; | |
| 442 | + } | |
| 443 | +} | |