| 81 | } |
| 82 | |
| 83 | void DynamicLightObject::Dispose() { |
| 84 | Object::Dispose(); |
| 85 | if (scenegraph_ && light_id_ != -1) { |
| 86 | bool success = scenegraph_->dynamic_light_collection.DeleteLight(light_id_); |
| 87 | LOG_ASSERT(success); |
| 88 | light_id_ = -1; |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | DynamicLightObject::DynamicLightObject() { |
| 93 | box_.dims = vec3(1.0f); |
nothing calls this directly
no test coverage detected