Add CaptureOffset to Environment Probe

This commit is contained in:
Wojtek Figat
2026-01-13 14:53:48 +01:00
parent 610c76578b
commit b7e32e13ab
3 changed files with 15 additions and 1 deletions

View File

@@ -448,7 +448,7 @@ void ProbesRendererService::OnRender(RenderTask* task, GPUContext* context)
if (_current.Type == ProbeEntry::Types::EnvProbe)
{
auto envProbe = (EnvironmentProbe*)_current.Actor.Get();
Vector3 position = envProbe->GetPosition();
Vector3 position = envProbe->GetTransform().LocalToWorld(envProbe->CaptureOffset);
float radius = envProbe->GetScaledRadius();
float nearPlane = Math::Max(0.1f, envProbe->CaptureNearPlane);