AmbientLightComponent struct in Thread
Constant world-fill light applied to every shaded surface regardless of facing. Use to keep shadowed areas from going pitch black.
Properties
| Color | Thread::Vec3 | Linear RGB. Default {1, 1, 1}. |
| Intensity | float | Multiplier on the contribution. Default 0.1. |
Ambient lights have no direction or position — the viewport gizmo (cloud icon) sits at the entity's transform purely for selection.
Example
Entity amb = scene->CreateEntity("Sky Fill");
auto& al = amb.AddComponent<Thread::AmbientLightComponent>();
al.Color = { 0.55f, 0.65f, 0.8f }; // cool sky bounce
al.Intensity = 0.25f;
AmbientLightComponent struct w Thread
Stałe światło wypełniające, nakładane na każdą cieniowaną powierzchnię niezależnie od jej orientacji. Używaj, żeby zacienione miejsca nie robiły się zupełnie czarne.
Właściwości
| Color | Thread::Vec3 | Liniowe RGB. Domyślnie {1, 1, 1}. |
| Intensity | float | Mnożnik wkładu. Domyślnie 0.1. |
Światło otoczenia nie ma kierunku ani pozycji — gizmo w viewporcie (ikona chmury) stoi w transformie encji wyłącznie po to, żeby dało się je zaznaczyć.
Przykład
Entity amb = scene->CreateEntity("Sky Fill");
auto& al = amb.AddComponent<Thread::AmbientLightComponent>();
al.Color = { 0.55f, 0.65f, 0.8f }; // chłodne odbicie nieba
al.Intensity = 0.25f;