Browse Source

修改了printScene.php文件

master
yuanjiajia 3 years ago
parent
commit
9405b622d5
  1. 6
      examples/PrintScene.php

6
examples/PrintScene.php

@ -13,13 +13,13 @@ $scene = new Scene();
$obj = new objects\Objects( [ 'ply' => 'mesh-10086.ply','appliedtransformation' => '1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1' ] ); //创建一个的模型 $obj = new objects\Objects( [ 'ply' => 'mesh-10086.ply','appliedtransformation' => '1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1' ] ); //创建一个的模型
$cloudsMap = new texture\map\Clouds(); //创建一个 Clouds类的贴图对象
$cloudsMap = new texture\procedural\Clouds(); //创建一个 Clouds类的贴图对象
$scene->registerTexture($cloudsMap); //将这个对象注册到 Scene $scene->registerTexture($cloudsMap); //将这个对象注册到 Scene
$imageMap = new texture\map\ImageMap(); //创建一个 ImageMap类的贴图对象
$imageMap = new texture\procedural\ImageMap(); //创建一个 ImageMap类的贴图对象
$scene->registerTexture($imageMap); //将这个对象注册到 Scene $scene->registerTexture($imageMap); //将这个对象注册到 Scene
$blend = new texture\map\Blend(); //创建一个 Blend类的贴图对象
$blend = new texture\procedural\Blend(); //创建一个 Blend类的贴图对象
$scene->registerTexture($blend); //将这个对象注册到 Scene $scene->registerTexture($blend); //将这个对象注册到 Scene

Loading…
Cancel
Save