texture-generator

Procedural Equirectangular Textures

Marble

This texture renderes marble surface with threads in it. The generated texture is intended for color maps. Click on a snapshot to open it online.

Code example

Code template of parameters with their default values.

import * as PET from "pet/patterns/marble.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/marble.html

Source

src/patterns/marble.js

Back