texture-generator

Procedural Equirectangular Textures

Grid

This texture draws a grid trying to maintain fixed width of grid lines. Click on a snapshot to open it online.

Code example

Code template of parameters with their default values.

import * as PET from "pet/patterns/grid.js";
:
model.material.map = PET.texture( );
PET.material( model.material );

Parameters

The parameters of the texture generator are:

API

All texture modules share the same API.

Online generator

online/grid.html

Source

src/patterns/grid.js

Back