fix ground plane's bounding box

This commit is contained in:
Mathias Agopian
2021-06-22 17:00:59 -07:00
committed by Mathias Agopian
parent 300e853646
commit 11b980832c

View File

@@ -312,8 +312,7 @@ static void createGroundPlane(Engine* engine, Scene* scene, App& app) {
Entity groundPlane = em.create();
RenderableManager::Builder(1)
.boundingBox({
{ -planeExtent.x, 0, -planeExtent.z },
{ planeExtent.x, 1e-4f, planeExtent.z }
{}, { planeExtent.x, 1e-4f, planeExtent.z }
})
.material(0, shadowMaterial->getDefaultInstance())
.geometry(0, RenderableManager::PrimitiveType::TRIANGLES,