跳转到内容

newsampler

上下文displace fog light shadow surface

int  newsampler(...)

int  newsampler(int seed, ...)

返回一个初始化后的采样器序列,用作nextsample函数的第一个参数。

seed

您可以指定序列的种子值。 使用相同的种子将生成相同的序列。 在对点云进行随机采样时,这有助于获得一致的结果。