DisplacementShape

DisplacementShape

A displacement modifier on a shape After Inigo Quilez https://iquilezles.org/www/articles/distfunctions/distfunctions.htm

Constructor

new DisplacementShape(isom, shape)

Source:

Constructor

Parameters:
Name Type Description
isom Isometry

the position of the shape

shape Shape

the base shape

Classes

DisplacementShape

Methods

onAdd(scene)

Source:

Additional actions to perform when the object is added to the scene. Propagate the call.

Parameters:
Name Type Description
scene Scene

the scene to which the object is added.

setId(scene)

Source:

Set the ID of the shape. Propagate the call.

Parameters:
Name Type Description
scene Scene

the scene to which the object is added.