102 MESH_NEED_REBUILD = (1 << 0),
103 EMISSIVE_MESH_MODIFIED = (1 << 1),
104 LIGHT_MODIFIED = (1 << 2),
105 LIGHT_ADDED = (1 << 3),
106 LIGHT_REMOVED = (1 << 4),
107 OBJECT_MANAGER = (1 << 5),
108 SHADER_COMPILED = (1 << 6),
109 SHADER_MODIFIED = (1 << 7),
124 int add_ies(
const string &ies);
125 int add_ies_from_file(
const string &filename);
126 void remove_ies(
int slot);
129 void device_free(
Device *device,
DeviceScene *dscene,
const bool free_background =
true);
133 bool need_update()
const;
136 bool has_background_light(
Scene *scene);
143 void test_enabled_lights(
Scene *scene);
146 void device_update_distribution(
Device *device,
151 void device_update_background(
Device *device,
SIMD_FORCE_INLINE btVector3 & normalize()
Normalize this vector x^2 + y^2 + z^2 = 1.
vector< IESSlot * > ies_slots
bool need_update_background
int last_background_resolution
bool last_background_enabled
#define CCL_NAMESPACE_END
#define NODE_SOCKET_API(type_, name)
unsigned __int64 uint64_t
bool has_shadow_linking() const
void tag_update(Scene *scene)
bool has_light_linking() const
bool has_contribution(Scene *scene)
friend class LightManager
CCL_NAMESPACE_BEGIN typedef std::mutex thread_mutex