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

Method Process

Engine/source/EtFramework/Systems/LightSystem.cpp:61–75  ·  view source on GitHub ↗

-------------------------- LightSystem::Process Extract light colors

Source from the content-addressed store, hash-verified

59// Extract light colors
60//
61void LightSystem::Process(ComponentRange<LightSystemView>& range)
62{
63 render::Scene& renderScene = UnifiedScene::Instance().GetRenderScene();
64
65 for (LightSystemView& view : range)
66 {
67 if (view.light->m_ColorChanged)
68 {
69 vec3 const col = view.light->m_Color * view.light->m_Brightness;
70 renderScene.UpdateLightColor(view.light->m_LightId, col);
71
72 view.light->m_ColorChanged = false;
73 }
74 }
75}
76
77
78} // namespace fw

Callers 1

OnTickMethod · 0.45

Calls 1

UpdateLightColorMethod · 0.80

Tested by

no test coverage detected