MCPcopy Create free account
hub / github.com/Illation/ETEngine / LightComponent

Method LightComponent

Engine/source/EtFramework/Components/LightComponent.cpp:41–48  ·  view source on GitHub ↗

--------------------------------- LightComponent::c-tor

Source from the content-addressed store, hash-verified

39// LightComponent::c-tor
40//
41LightComponent::LightComponent(E_Type const type, vec3 const& color, float const brightness, bool const castsShadow)
42 : m_Type(type)
43 , m_Color(color)
44 , m_Brightness(brightness)
45 , m_CastsShadow(castsShadow)
46{
47 ET_ASSERT((!castsShadow) || (type == E_Type::Directional), "Point light shadows are not supported");
48}
49
50
51//============================

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected