Refactor Actor::Draw to use only variant with RenderContextBatch to simplify rendering code

This commit is contained in:
2026-08-20 22:50:32 +02:00
parent 3090ad5e20
commit dfb0db0b70
49 changed files with 227 additions and 272 deletions
@@ -17,8 +17,9 @@ DirectionalLight::DirectionalLight(const SpawnParams& params)
Brightness = 8.0f;
}
void DirectionalLight::Draw(RenderContext& renderContext)
void DirectionalLight::Draw(RenderContextBatch& renderContextBatch)
{
const RenderContext& renderContext = renderContextBatch.GetMainContext();
float brightness = Brightness;
AdjustBrightness(renderContext.View, brightness);
Float3 color = Color.ToFloat3() * (Color.A * brightness);