Utility object that draws an infinite grid floor at height zero.
Useful for viewers or debug rendering.
Required scripts
The Floor object requires:
/*{{ javascript("jslib/floor.js") }}*/
Summary
Creates a Floor object with default values.
Syntax
var floor = Floor.create(graphicsDevice, mathDevice);
Summary
Renders the grid lines of the floor taking into account the far plane of the camera.
Syntax
floor.render(graphicsDevice, camera);
Summary
The version number of the Floor implementation.
Syntax
var versionNumber = floor.version;
Summary
The color the grid lines fade to at the horizon.
Syntax
floor.fadeToColor = [0.95, 0.95, 1.0, 1.0];
Summary
The maximum number of lines to draw when the whole grid is visible.
Syntax
floor.numLines = 400;