User Tools

Site Tools


gamedev:textureproperties:height_offset

Skin Texture Property: height.offset

Defines the relative offset for the height texture property.

Excepted Data Source1 component value
Data Rangeany value
Default Value0
Affected ModulesGraphic
Linked Propertiesheight, height.scale

Description

The height.offset texture property is linked to the height texture property. Defines the relative offset of the height values.

Positive values move the height values away from the surface while negative values move them into the surface. This can be used for height maps only denting into or only bumping out of the surface to maximize the texture resolution. The effective offset added to the height is the height.offset multiplied by the height.scale. The height.offset can thus be considered the percentage shift of the height texture property values. The typical range is from -0.5 (height of 1 is surface level and 0 the total bottom) to 0.5 (height of 0 is surface level and 1 the total uphill). For generating normal maps this is not required.

The source is typically a single component value representing the offset of the height values relative to the height scaling.

The default value for this texture property is 0.

Examples

( TODO: example image )

You could leave a comment if you were logged in.
gamedev/textureproperties/height_offset.txt · Last modified: 2019/05/24 23:43 by dragonlord