Displace

Displace vertices based on their normal and a texture lookup for the amount.

Displace Param Description

Map

Texture to control the displacement, uv coords for a vertex govern the lookup pos. Texture must be readable.

Amount

Amount to displace vertex which is modulated by the texture lookup.

Offset

UV offset, use for scrolling.

Scale

Scale uv coords.

Channel

Channel of the texture to use for the displacement.

Cent Lum

Usually the displacement is in the range of 0 to 1 so everything is moved in one direction, sometimes you may want to move things up and down for example if so check this, then values less than the Cent Val will move vertices one way and values above will move it in the opposite direction.

Cent Val

Change this to bias the displacement.

Decay

Falloff value for the effect from the origin of the mesh (remember you can move this using the Offset value in common params) this will diminish the effect based on distance.

Displace Class

public class MegaDisplace : MegaModifier
{
    public Texture2D   map;
    public float       amount;
    public MegaChannel channel;
    public Vector2     offset;
    public Vector2     scale;
}

Video showing how to use the Displace modifier

You must be logged in to post a comment.