blob: 27fe0a2d0f21622329bc097a804ebc6385eb3936 [file] [log] [blame]
// Copyright 2019 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 "src/ui/scenic/lib/gfx/resources/lights/point_light.h"
namespace scenic_impl {
namespace gfx {
const ResourceTypeInfo PointLight::kTypeInfo = {ResourceType::kLight | ResourceType::kPointLight,
"PointLight"};
PointLight::PointLight(Session* session, SessionId session_id, ResourceId id)
: Light(session, session_id, 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