Fractal Warp Shader
The Fractal warp shader distorts the 2D texture coordinates of the upstream shaders connected to its Main Input. In the example below you can see the effect of modifying the Scale value on the black and white shapes. Practical examples of this might be to transform a shape defined and displaced by a Simple shape shader into a snaking river that cuts across the terrain, or into a detailed hill or mountain.
- Scale: Sets the size of the fractal pattern’s feature detail in meters and is similar to the Feature Scale parameter in a Power Fractal shader. Default value is 1000 metres and useful values depend on the size of the area to warp. Using too high a value relative to the size of the area you wish to affect, can result in unpredictable results as the fractal pattern can warp the areas to completely new positions and obliterate features. Values lower than the size of the area you want to warp can lead to more predictable results.
- Warp amount: Sets the amplitude of the warp effect. Default value is 1.0. A value of 0.0 results in no warping effect. Lower values result in less warping, while higher values result in greater warping up to the limits set by the Scale parameter.
- Variation:This has an effect on the shape of the warp.
- Roughness: This affects the amount of contribution from smaller octaves of the warp fractal. The default setting is 1, and recommended settings range from 0 to 2.0.
- Scale modulator: The warp fractal consists of multiple octaves of noise, with each octave working at a different scale. The Scale modulator acts as a filter on which octaves are applied. When the Scale modulator is 1, all octaves are applied. When the Scale modulator is less than 1, some of the largest scale octaves are filtered out so that only the smaller scale octaves are applied. In other words it limits the largest scale of the fractal. The Scale modulator is applied using an exponential scale. When the sSale modulator is 0.5, the largest scale is one thousand times smaller than normal. When the Scale modulator is 0, the largest scale is one million times smaller than normal.
- Obey downstream smoothing filters: Allows the Fractal warp shader to take into consideration the “Smoothing scale” parameter of any Smoothing filter shaders located downstream from it in the node network. The “Smooth scale” value can force the Fractal warp shader not to generate features smaller than the “Smooth scale” value thereby smoothing its output.
- Mask by shader: When checked this shader is masked by the shader or function node assigned to this parameter.
- Fit mask to this: If this is checked the mask shader, specified with the Mask by shader parameter is given different texture coordinates in order to remap it into the texture space of this shader. Note that not all shaders use texture coordinates so this may have no effect.
- Invert mask: Check this to invert the values produced by the mask shader specified in the Mask by shader parameter.
Effect on displacement
Effects on texture
A shader is a program or set of instructions used in 3D computer graphics to determine the final surface properties of an object or image. This can include arbitrarily complex descriptions of light absorption and diffusion, texture mapping, reflection and refraction, shadowing, surface displacement and post-processing effects. In Terragen 2 shaders are used to construct and modify almost every element of a scene.
A parameter is an individual setting in a node parameter view which controls some aspect of the node.
Literally, to change the position of something. In graphics terminology to displace a surface is to modify its geometric (3D) structure using reference data of some kind. For example, a grayscale image might be taken as input, with black areas indicating no displacement of the surface, and white indicating maximum displacement. In Terragen 2 displacement is used to create all terrain by taking heightfield or procedural data as input and using it to displace the normally flat sphere of the planet.