Class DisplacementMap
Built in DisplacementMap effect.
public class DisplacementMap : Effect
- Inheritance
-
DisplacementMap
- Inherited Members
Constructors
DisplacementMap(DeviceContext)
Initializes a new instance of DisplacementMap effect.
public DisplacementMap(DeviceContext context)
Parameters
context
DeviceContext
Properties
Scale
Multiplies the intensity of the selected channel from the displacement image. The higher you set this property, the more the effect displaces the pixels
public float Scale { get; set; }
Property Value
XChannelSelect
The effect extracts the intensity from this color channel and uses it to spatially displace the image in the X direction. See Color channels for more info.
public ChannelSelector XChannelSelect { get; set; }
Property Value
YChannelSelect
The effect extracts the intensity from this color channel and uses it to spatially displace the image in the Y direction. See Color channels for more info.
public ChannelSelector YChannelSelect { get; set; }