SculptMode RaiseLower

book_4_sparkGenerated
code_blocksInput

Description

The RaiseLower field is a member of the SculptMode enumeration within the Editor.TerrainEditor namespace. This enumeration is used to define different sculpting modes available in the terrain editor, which are passed to the compute shader for processing terrain modifications.

The RaiseLower mode allows users to interactively raise or lower the terrain height. This is typically used to create hills or valleys by adjusting the terrain's elevation based on user input.

Usage

To use the RaiseLower mode, you would typically set the sculpting mode of a terrain editor tool to SculptMode.RaiseLower. This will enable the tool to modify the terrain by increasing or decreasing the height at the point of interaction.

Ensure that the terrain editor is properly initialized and that the compute shader is configured to handle the RaiseLower mode for effective terrain manipulation.

Example

// Example of setting the sculpt mode to RaiseLower

// Assuming terrainEditor is an instance of a terrain editing tool
terrainEditor.SetSculptMode(SculptMode.RaiseLower);

// Now, when the user interacts with the terrain, it will raise or lower the height
// based on the input provided, such as mouse movement or stylus pressure.