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); }