texture-generator

Procedural Equirectangular Textures

material.js

Module. Used to patch the shader of a material to reduce geometrical artifacts.

material(…)

Function. Patches the shader of a mesh material. This reduces the texture zigzagging near the poles. The function can be applied to both meshes and materials.

material( mesh )
material( material )

where:

The function returns the material.

The function avoids patching a material in the following conditions:

Back