Add terrain rendering support for Global Surface Atlas

This commit is contained in:
Wojciech Figat
2022-04-29 14:05:03 +02:00
parent 1a711ea14f
commit 5465652466
10 changed files with 80 additions and 44 deletions

View File

@@ -378,7 +378,7 @@ void SplineModel::Draw(RenderContext& renderContext)
for (int32 segment = 0; segment < _instances.Count(); segment++)
{
auto& instance = _instances[segment];
if (!renderContext.View.CullingFrustum.Intersects(instance.Sphere))
if (!(renderContext.View.IsCullingDisabled || renderContext.View.CullingFrustum.Intersects(instance.Sphere)))
continue;
drawCall.Deformable.Segment = (float)segment;