C# (CSharp) LibNoise.Modifier Namespace

Classes

Name Description
Abs Noise module that outputs the absolute value of the output value from a source module.
Blend Noise module that outputs a weighted blend of the output values from two source modules given the output value supplied by a control module. - LeftModule outputs one of the values to blend. - RightModule outputs one of the values to blend. - ControlModule is known as the control module. The control module determines the weight of the blending operation. Negative values weigh the blend towards the output value from the LeftModule. Positive values weigh the blend towards the output value from the ReftModule. This noise module uses linear interpolation to perform the blending operation.
Cache Noise module that caches the last output value generated by a source module. If an application passes an input value to the GetValue() method that differs from the previously passed-in input value, this noise module instructs the source module to calculate the output value. This value, as well as the ( @a x, @a y, @a z ) coordinates of the input value, are stored (cached) in this noise module. If the application passes an input value to the GetValue() method that is equal to the previously passed-in input value, this noise module returns the cached output value without having the source module recalculate the output value. If an application passes a new source module to the SetSourceModule() method, the cache is invalidated. Caching a noise module is useful if it is used as a source module for multiple noise modules. If a source module is not cached, the source module will redundantly calculate the same output value once for each noise module in which it is included.
Clamp Noise module that clamps the output value from a source module to a range of values. The range of values in which to clamp the output value is called the clamping range. If the output value from the source module is less than the lower bound of the clamping range, this noise module clamps that value to the lower bound. If the output value from the source module is greater than the upper bound of the clamping range, this noise module clamps that value to the upper bound.
Curve Noise module that maps the output value from a source module onto an arbitrary function curve. This noise module maps the output value from the source module onto an application-defined curve. This curve is defined by a number of control points; each control point has an input value that maps to an output value. Refer to the following illustration: To add the control points to this curve, call the AddControlPoint() method. Since this curve is a cubic spline, an application must add a minimum of four control points to the curve. If this is not done, the GetValue() method fails. Each control point can have any input and output value, although no two control points can have the same input value. There is no limit to the number of control points that can be added to the curve.
Exponent Noise module that maps the output value from a source module onto an exponential curve. Because most noise modules will output values that range from -1.0 to +1.0, this noise module first normalizes this output value (the range becomes 0.0 to 1.0), maps that value onto an exponential curve, then rescales that value back to the original range.
Invert Noise module that inverts the output value from a source module.
ScaleBias Noise module that applies a scaling factor and a bias to the output value from a source module. The GetValue() method retrieves the output value from the source module, multiplies it with a scaling factor, adds a bias to it, then outputs the value.
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.
Terrace Noise module that maps the output value from a source module onto a terrace-forming curve. This noise module maps the output value from the source module onto a terrace-forming curve. The start of this curve has a slope of zero; its slope then smoothly increases. This curve also contains control points which resets the slope to zero at that point, producing a "terracing" effect. Refer to the following illustration: To add a control point to this noise module, call the AddControlPoint() method. An application must add a minimum of two control points to the curve. If this is not done, the GetValue() method fails. The control points can have any value, although no two control points can have the same value. There is no limit to the number of control points that can be added to the curve. This noise module clamps the output value from the source module if that value is less than the value of the lowest control point or greater than the value of the highest control point. This noise module is often used to generate terrain features such as your stereotypical desert canyon.