blob: 165d06f7ce96e3b75a7be903ad1cef8425b9bb39 [file] [log] [blame]
// Copyright 2016 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.
#ifndef SRC_UI_LIB_ESCHER_SCENE_AMBIENT_LIGHT_H_
#define SRC_UI_LIB_ESCHER_SCENE_AMBIENT_LIGHT_H_
#include "src/ui/lib/escher/geometry/types.h"
namespace escher {
// Ambient light is emitted omnidirectionally from infinity.
class AmbientLight {
public:
explicit AmbientLight(float intensity = 0.f);
explicit AmbientLight(const vec3& color);
~AmbientLight();
const vec3 color() const { return color_; }
private:
vec3 color_;
};
} // namespace escher
#endif // SRC_UI_LIB_ESCHER_SCENE_AMBIENT_LIGHT_H_