internal: expose more RenderableManager/LightManager bindings

This commit is contained in:
Nick Fisher
2025-01-06 18:57:26 +08:00
parent 6cefe44c64
commit b1c0d4b2e8
7 changed files with 190 additions and 35 deletions

View File

@@ -531,6 +531,9 @@ namespace thermion
{
auto light = EntityManager::get().create();
// LightManager::ShadowOptions shadowOptions;
// shadowOptions.stable = true;
auto result = LightManager::Builder(t)
.color(Color::cct(colour))
.intensity(intensity)
@@ -541,6 +544,7 @@ namespace thermion
.sunHaloFalloff(sunHaloFallof)
.position(filament::math::float3(posX, posY, posZ))
.direction(filament::math::float3(dirX, dirY, dirZ))
// .shadowOptions(shadowOptions)
.castShadows(shadows)
.build(*_engine, light);
if (result != LightManager::Builder::Result::Success)