Constructor options used for MeshPlane instances. Defines how a texture is mapped onto a plane with configurable vertex density.
MeshPlane
// Basic plane with default vertex densityconst plane = new MeshPlane({ texture: Assets.get('background.png')});// High-detail plane for complex deformationsconst detailedPlane = new MeshPlane({ texture: Assets.get('landscape.jpg'), verticesX: 20, verticesY: 20}); Copy
// Basic plane with default vertex densityconst plane = new MeshPlane({ texture: Assets.get('background.png')});// High-detail plane for complex deformationsconst detailedPlane = new MeshPlane({ texture: Assets.get('landscape.jpg'), verticesX: 20, verticesY: 20});
The texture to use on the plane.
Optional
Number of vertices along the X axis. More vertices allow for more detailed deformations.
10 Copy
10
Number of vertices along the Y axis. More vertices allow for more detailed deformations.
Constructor options used for
MeshPlane
instances. Defines how a texture is mapped onto a plane with configurable vertex density.Example
See