本 Wiki 开启了 HTTPS。但由于同 IP 的 Blog 也开启了 HTTPS,因此本站必须要支持 SNI 的浏览器才能浏览。为了兼容一部分浏览器,本站保留了 HTTP 作为兼容。如果您的浏览器支持 SNI,请尽量通过 HTTPS 访问本站,谢谢!
这里会显示出您选择的修订版和当前版本之间的差别。
后一修订版 | 前一修订版 | ||
vfx:houdini:vex:functions:noise_and_randomness [2020/05/14 01:57] – 创建 codinghare | vfx:houdini:vex:functions:noise_and_randomness [2021/11/11 08:08] (当前版本) – codinghare | ||
---|---|---|---|
行 1: | 行 1: | ||
======Noise & Randomness====== | ======Noise & Randomness====== | ||
Noise & Randomness in VEX //Ver. 18.0// | Noise & Randomness in VEX //Ver. 18.0// | ||
- | ===== ===== | + | ---- |
+ | |||
+ | ====General==== | ||
+ | ===Rand=== | ||
+ | <code vex> | ||
+ | // | ||
+ | // | ||
+ | // | ||
+ | // | ||
+ | /* 使用 */ | ||
+ | float rand(seed); // | ||
+ | // | ||
+ | vector pos = 1; | ||
+ | float seed = 0; | ||
+ | pos *= rand(seed); //random number are differernt in x,y,z | ||
+ | pos *= float(rand(seed));// | ||
+ | |||
+ | </ |