Browse Source

渲染测式 开发

master
yuanjiajia 1 year ago
parent
commit
a202caa38c
  1. 1
      examples/matRenderTest.php
  2. 1
      examples/renderTest.php

1
examples/matRenderTest.php

@ -148,6 +148,7 @@ foreach($taskModel->childsParams as $childParams){
(new Client())->get($childParams->childPlyFile, [RequestOptions::SINK => $plyFileHandle]); (new Client())->get($childParams->childPlyFile, [RequestOptions::SINK => $plyFileHandle]);
$obj = new Objects(); $obj = new Objects();
$obj->ply = $plyFileSavaPath; $obj->ply = $plyFileSavaPath;
$obj->camerainvisible = $childParams->isVisible === 1 ? Objects::CLOSE : Objects::OPEN;
$obj->setMaterial($material); $obj->setMaterial($material);
$scene->registerObjects($obj); $scene->registerObjects($obj);
} }

1
examples/renderTest.php

@ -245,6 +245,7 @@ foreach($taskModel->childsParams as $childParams){
(new Client())->get($childParams->childPlyFile, [RequestOptions::SINK => $plyFileHandle]); (new Client())->get($childParams->childPlyFile, [RequestOptions::SINK => $plyFileHandle]);
$obj = new Objects(); $obj = new Objects();
$obj->ply = $plyFileSavaPath; $obj->ply = $plyFileSavaPath;
$obj->camerainvisible = $childParams->isVisible === 1 ? Objects::CLOSE : Objects::OPEN;
$obj->setMaterial($material); $obj->setMaterial($material);
$scene->registerObjects($obj); $scene->registerObjects($obj);
} }

Loading…
Cancel
Save