Class: HeightMesh

shf3d.HeightMesh

Class representing a height-field mesh.

The height-field is loaded from a grey-map image file.

new shf3d.HeightMesh ()

Properties:
Name Type Description
material shf3d.Material

(default: null) The surface material.

source string

(default: "") The URL of the height-field image.

status string

[readonly] The current status. One of: empty|loading|error|success

Extends

Methods

shf3d.HeightMesh.HeightMesh#heightAt (s, t)number static

Returns the interpolated height at the given location on the height-field.

Name Type Description
s number

The S position in the height-field coordinate system.

t number

The T position in the height-field coordinate system.

Returns:
Type Description
number The height.