You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
911 B
27 lines
911 B
<?php
|
|
|
|
|
|
|
|
namespace Blobt\Luxcore\scene;
|
|
|
|
|
|
include dirname(dirname(__FILE__)) . "/vendor/autoload.php";
|
|
|
|
|
|
/**
|
|
* 配置采样参数
|
|
*/
|
|
$sampler = new render\Sampler(); //实例一个Sampler类对象,当前默认的采样器类型为 Sobol
|
|
|
|
|
|
|
|
// 现在修改采样器类型为 RANDOM
|
|
$sampler->type = render\Sampler::TYPE_RANDOM; //设置采样器类型为 RANDOM,采样器类型有三个可选的类型,分别为 sobol、RANDOM、METROPOLIS。
|
|
|
|
$sampler->sampling = new render\Random(); //为 RANDOM类型采样器 配置参数,其 RANDOM类中的各种属性,可以查看 RANDOM类 的注释说明。其值为三个可选的
|
|
//采样器类(分别是 Sobol、Random类、Metropolis类)的实例化对象,需要与 $type 的値保持对应。
|
|
|
|
echo $sampler; //输出采样器配置参数
|
|
|
|
|
|
?>
|