C# Класс LibNoise.Modifier.Select

Noise module that outputs the value selected from one of two source modules chosen by the output value from a control module. - LeftModule outputs a value. - RightModule outputs a value. - ControlModule is known as the control module. The control module determines the value to select. If the output value from the control module is within a range of values known as the selection range, this noise module outputs the value from the RightModule. Otherwise, this noise module outputs the value from the LeftModule By default, there is an abrupt transition between the output values from the two source modules at the selection-range boundary. To smooth the transition, pass a non-zero value to the EdgeFalloff method. Higher values result in a smoother transition.
Наследование: SelectorModule, IModule3D
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
_controlModule IModule
_edgeFalloff float
_leftModule IModule
_lowerBound float
_rightModule IModule
_upperBound float

Открытые методы

Метод Описание
GetValue ( float x, float y, float z ) : float

Generates an output value given the coordinates of the specified input value.

Select ( ) : System.Diagnostics
Select ( IModule controlModule, IModule rightModule, IModule leftModule, float lower, float upper, float edge ) : System.Diagnostics
SetBounds ( float lower, float upper ) : void

Описание методов

GetValue() публичный Метод

Generates an output value given the coordinates of the specified input value.
public GetValue ( float x, float y, float z ) : float
x float The input coordinate on the x-axis.
y float The input coordinate on the y-axis.
z float The input coordinate on the z-axis.
Результат float

Select() публичный Метод

public Select ( ) : System.Diagnostics
Результат System.Diagnostics

Select() публичный Метод

public Select ( IModule controlModule, IModule rightModule, IModule leftModule, float lower, float upper, float edge ) : System.Diagnostics
controlModule IModule
rightModule IModule
leftModule IModule
lower float
upper float
edge float
Результат System.Diagnostics

SetBounds() публичный Метод

public SetBounds ( float lower, float upper ) : void
lower float
upper float
Результат void

Описание свойств

_controlModule защищенное свойство

protected IModule _controlModule
Результат IModule

_edgeFalloff защищенное свойство

The falloff value is the width of the edge transition at either edge of the selection range. By default, there is an abrupt transition between the values from the two source modules at the boundaries of the selection range. For example, if the selection range is 0.5 to 0.8, and the edge falloff value is 0.1, then the GetValue() method outputs: - the output value from the source module with an index value of 0 if the output value from the control module is less than 0.4 ( = 0.5 - 0.1). - a linear blend between the two output values from the two source modules if the output value from the control module is between 0.4 ( = 0.5 - 0.1) and 0.6 ( = 0.5 + 0.1). - the output value from the source module with an index value of 1 if the output value from the control module is between 0.6 ( = 0.5 + 0.1) and 0.7 ( = 0.8 - 0.1). - a linear blend between the output values from the two source modules if the output value from the control module is between 0.7 ( = 0.8 - 0.1 ) and 0.9 ( = 0.8 + 0.1). - the output value from the source module with an index value of 0 if the output value from the control module is greater than 0.9 ( = 0.8 + 0.1).
protected float _edgeFalloff
Результат float

_leftModule защищенное свойство

The left input module
protected IModule _leftModule
Результат IModule

_lowerBound защищенное свойство

Lower bound of the selection range.
protected float _lowerBound
Результат float

_rightModule защищенное свойство

The right input module
protected IModule _rightModule
Результат IModule

_upperBound защищенное свойство

Upper bound of the selection range.
protected float _upperBound
Результат float