ChanLumBasic 基础Shader 着色器

Shader Properties

Samples[1..2147483647]

样本[1.2147483647]

Use this setting to define the amount of samples ChanLum should take in a given area, be it along a normal or within a spherical sample area. The first sample is always taken from the offset sample point. If you set ChanLum to take just one sample, the settings that will no longer apply (like sample radius and type) will be grayed out.

使用这个设置来定义 ChanLum 应该在给定区域采集的样本量,无论是沿着正常区域还是在球形样本区域内。第一个样品总是取自偏移取样点。如果您将 ChanLum 设置为只采用一个示例,那么将不再应用的设置(如示例半径和类型)将变成灰色。

Inital Offset[-∞..+∞m]

数字偏移量[-∞ . . + ∞ m ]

Use this setting to define the distance between the original surface point to be sampled ((P) in above illustrations) and the first sample point. This first sample point is a point in space along the surface normal.

使用这个设置来定义要采样的原始表面点和第一个采样点之间的距离(p)。第一个采样点是沿曲面法线的空间点。

Sample Radius[-∞..+∞m]

样本半径[-∞ . . + ∞ m ]

Use this setting to define the size of the area sample, in the illustrations above labeled (R). A larger radius generally means that you need more samples to get a smooth (read: low-noise) appearance.

使用此设置来定义区域样本的大小,在上面标记为(r)的图示中。更大的半径通常意味着你需要更多的样本来获得一个平滑(低噪音)的外观。

Sample Type

样本类别

Use this setting to select the sample type. It can be set to either Along Normal or to Area. If set to Along Normal, samples will be taken along the surface normal. This can be either a set of regularly spaced samples (if stochastic is turned off) or random samples anywhere along the normal, resulting in a more noisy appearance. If Sample Type is set to Area, ChanLum will need to take random samples within the area, so the stochastic option will be grayed out.

使用此设置选择示例类型。它可以设置为沿正常或区域。如果设置为沿正常方向,样品将沿正常表面采集。这可以是一组规则间隔的样本(如果随机被关闭) ,或者是正常情况下任何地方的随机样本,从而产生更多的噪声。如果样本类型设置为区域,ChanLum 将需要在区域内采取随机样本,因此随机选项将变成灰色。

Stochastic

随机的

If this setting is turned on, ChanLum will take randomly-placed samples for you. If it is turned off (only possible if Along Normal was selected), it will take samples at regular intervals, leading to a smoother result with fewer samples.

如果这个设置被打开,ChanLum 会为你随机抽取样本。如果它被关闭(只有在沿正常被选择的情况下才有可能) ,它将采取定期间隔的样本,导致较平滑的结果与较少的样本。

Gaussian

高斯分布

This is an extra option when in Stochastic mode. If it is turned off, the random samples can be anywhere in the defined area. If it is turned on, the chance of getting samples closer to the offset first sample point is much greater than getting samples further away. This will generally lead to a more pleasant appearance. If you turn Gaussian off, you may want to decrease the sample area in order to get about the same effect as if it were turned on.

这是一个额外的选择,当在随机模式。如果它被关闭,随机样本可以在定义区域的任何地方。如果它是打开的,得到样品接近偏移第一个样品点的机会比得到更远的样品更大。这通常会导致一个更愉快的外观。如果你关闭高斯,你可能想要减少样本面积,以获得相同的效果,如果它被打开。

Shadows

阴影

Turn this setting off to omit shadows from the calculation. It is not advisable to do this in the instances described above, because they rely on shadows for the entire appearance. But there may be some instances where you may want to use ChanLum’s fog sample method without requiring shadows to be taken into account (such as with particle sprites), that’s what this setting was designed to do.

关闭此设置以省略计算中的阴影。在上面描述的实例中不建议这样做,因为它们依赖于整个外观的阴影。但是在某些情况下,您可能希望使用 ChanLum 的雾样本方法,而不需要考虑阴影(比如使用粒子精灵) ,这就是这个设置的设计目的。

Seed[-2147483648..2147483647]

种子[-2147483648. . 2147483647]

Use this setting to define the initial amount of random variation for Stochastic interpolation.

使用此设置来定义随机插值的初始随机变异量。

Use Lights
Lights

使用闪光灯

Use this setting to define which light sources should be included or excluded for ChamLum calculations. This setting applies to ChamLum only. Normal lighting and shadow casting will not be affected by this setting!

使用此设置可定义应包含或排除哪些光源用于 ChamLum 计算。此设置仅适用于 ChamLum。正常的灯光和阴影投射不会受到这个设置的影响!

Light sources can be dragged and dropped from the Attribute Manager into the Lights field.

光源可以从属性管理器拖放到灯光字段中。