From a202caa38c304c6d4e429cb42789a7a3c7337f58 Mon Sep 17 00:00:00 2001 From: yuanjiajia <1139393632@qq.com> Date: Tue, 11 Jul 2023 09:15:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=B2=E6=9F=93=E6=B5=8B=E5=BC=8F=20?= =?UTF-8?q?=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/matRenderTest.php | 1 + examples/renderTest.php | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/matRenderTest.php b/examples/matRenderTest.php index 2b63b87..945ce63 100644 --- a/examples/matRenderTest.php +++ b/examples/matRenderTest.php @@ -148,6 +148,7 @@ foreach($taskModel->childsParams as $childParams){ (new Client())->get($childParams->childPlyFile, [RequestOptions::SINK => $plyFileHandle]); $obj = new Objects(); $obj->ply = $plyFileSavaPath; + $obj->camerainvisible = $childParams->isVisible === 1 ? Objects::CLOSE : Objects::OPEN; $obj->setMaterial($material); $scene->registerObjects($obj); } diff --git a/examples/renderTest.php b/examples/renderTest.php index 38d7819..aef3d51 100644 --- a/examples/renderTest.php +++ b/examples/renderTest.php @@ -245,6 +245,7 @@ foreach($taskModel->childsParams as $childParams){ (new Client())->get($childParams->childPlyFile, [RequestOptions::SINK => $plyFileHandle]); $obj = new Objects(); $obj->ply = $plyFileSavaPath; + $obj->camerainvisible = $childParams->isVisible === 1 ? Objects::CLOSE : Objects::OPEN; $obj->setMaterial($material); $scene->registerObjects($obj); }