Add ObjectRadius to DrawCall to properly cull local lights and env probes in Forward Shading
This commit is contained in:
@@ -366,6 +366,7 @@ void TextRender::Draw(RenderContext& renderContext)
|
||||
DrawCall drawCall;
|
||||
drawCall.World = world;
|
||||
drawCall.ObjectPosition = drawCall.World.GetTranslation();
|
||||
drawCall.ObjectRadius = _sphere.Radius;
|
||||
drawCall.Surface.GeometrySize = _localBox.GetSize();
|
||||
drawCall.Surface.PrevWorld = _drawState.PrevWorld;
|
||||
drawCall.Surface.Lightmap = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user