texture-generator

Procedural Equirectangular Textures

Planet

This texture generates the surface colors of a planet. There are seven types of terrains groups into three clusters: water (deep and shallow), land (beach, low land and high land) and mountains (rocky and snowy parts). The generated texture is for color maps. Click on a snapshot to open it online.

Code template

Code template of parameters with their default values.

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

Parameters

The parameters of the texture generator are:

Ocean parameters:

Land parameters:

Mountain parameters:

API

All texture modules share the same API.

Online generator

online/planet.html

Source

src/patterns/planet.js

Back