From 11b980832ce3d44e2c7609dfe2cd6795e2c4db4f Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Tue, 22 Jun 2021 17:00:59 -0700 Subject: [PATCH] fix ground plane's bounding box --- samples/gltf_viewer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/samples/gltf_viewer.cpp b/samples/gltf_viewer.cpp index 498c4e495e..d8ca070626 100644 --- a/samples/gltf_viewer.cpp +++ b/samples/gltf_viewer.cpp @@ -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,