
Module. Used to patch the shader of a material to reduce geometrical artifacts.
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:
mesh – THREE.Mesh which material is patchedmaterial – THREE.Material to patchThe function returns the material.
The function avoids patching a material in the following conditions:
.mapping property is not THREE.EquirectangularReflectionMapping.map, aoMap and .bumpMap, while textures in envMap do not need patching