blob: 999dbec499c2a02417078e926761c1b119419e3a [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "garnet/lib/ui/gfx/resources/lights/point_light.h"
namespace scenic_impl {
namespace gfx {
const ResourceTypeInfo PointLight::kTypeInfo = {
ResourceType::kLight | ResourceType::kPointLight, "PointLight"};
PointLight::PointLight(Session* session, ResourceId id)
: Light(session, id, PointLight::kTypeInfo) {}
bool PointLight::SetPosition(const glm::vec3& position) {
position_ = position;
return true;
}
bool PointLight::SetFalloff(float falloff) {
falloff_ = falloff;
return true;
}
} // namespace gfx
} // namespace scenic_impl