Files
workinf_Blender_Wasm/blender-5.2.0/source/blender/blenkernel/BKE_light.h
2026-08-12 04:47:48 -04:00

31 lines
726 B
C++

/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
*
* SPDX-License-Identifier: GPL-2.0-or-later */
#pragma once
/** \file
* \ingroup bke
* \brief General operations, lookup, etc. for blender lights.
*/
#include "BLI_compiler_attrs.h"
#include "BLI_math_matrix_types.hh"
#include "BLI_math_vector_types.hh"
namespace blender {
struct Depsgraph;
struct Light;
struct Main;
Light *BKE_light_add(Main *bmain, const char *name) ATTR_WARN_UNUSED_RESULT;
void BKE_light_eval(Depsgraph *depsgraph, Light *la);
float BKE_light_power(const Light &light);
float3 BKE_light_color(const Light &light);
float BKE_light_area(const Light &light, const float4x4 &object_to_world);
} // namespace blender