# tsl-textures
**Repository Path**: mirrors-gis/tsl-textures
## Basic Information
- **Project Name**: tsl-textures
- **Description**: three tsl https://github.com/boytchev/tsl-textures
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2025-07-23
- **Last Updated**: 2025-07-23
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# tsl-textures
A collection of Three.js Shading Language (TSL) textures –
these are online real-time procedural generators of 3D textures.
Pick a texture from the [Project home page](https://boytchev.github.io/tsl-textures/).
[
](https://boytchev.github.io/tsl-textures/examples/planet/index.html)
[
](https://boytchev.github.io/tsl-textures/examples/normal-map/index.html)
[
](https://boytchev.github.io/tsl-textures/examples/wooden-toys/index.html)
[
](https://boytchev.github.io/tsl-textures/examples/protozoa/index.html)
[
](https://boytchev.github.io/tsl-textures/examples/neck-massage/index.html)
[
](https://boytchev.github.io/tsl-textures/examples/watermelon/index.html)
[
](https://boytchev.github.io/tsl-textures/examples/texture-in-motion/index.html)
## Usage
### Use with NPM
**Install**
```bat
npm install three tsl-textures
```
**Use in a javascript file**
```js
// Important: Use `webgpu` version of Three.js
import * as THREE from 'three/webgpu';
// Import your desired texture
import { polkaDots } from 'tsl-textures/polka-dots';
// Create the renderer. Important: Use `WebGPURenderer`
renderer = new THREE.WebGPURenderer({antialias: true});
// ... Create your Three.js scene, camera, lights, etc.
// Create geometry
const objectGeometry = new THREE.IcosahedronGeometry(1, 12)
// Create material: Important: Use `Node` Material
objectMaterial = new THREE.MeshStandardNodeMaterial({
color: 0xCCCCCC,
roughness: 0.5,
metalness: 0.0,
});
// Apply texture to the material's `colorNode` property
objectMaterial.colorNode = polkaDots ( {
count: 2,
size: 0.6,
blur: 0.22,
color: new THREE.Color(0),
background: new THREE.Color(16777215)
} );
// Assign Geometry and Material to a Mesh
object = new THREE.Mesh(objectGeometry, objectMaterial);
// Render
renderer.render( scene, camera );
```