module:extras/meshes/createfloor

Back to documentation index.

### module:extras/meshes/createfloor()

The extras/meshes/createfloor.js module. To import all symbols in this module, either of the following can be used:

import * from "extras/meshes/createfloor.js";
// -- or --
import * as CustomModuleName from "extras/meshes/createfloor.js";

Methods

### (static) module:extras/meshes/createfloor.createFloor(three, xStart, yStart, width, height, tileSize, [z])

Generates a mesh buffer of a tiled floor. Texture coordinates of each tile will range from [0,1] across the width and height of that tile. Thus, any texture used to render the mesh buffer should entirely be of a square tile.

Parameters

Return Value

A buffer geometry object. The resulting mesh buffer. (Type: *)

Back to documentation index.