> Check out the free Brick Procedural Texture.

Source: https://doc.babylonjs.com/toolsAndResources/assetLibraries/proceduralTexturesLibrary/brick

# Brick Procedural texture

![Brick Procedural texture](https://doc.babylonjs.com/img/extensions/proceduraltextures/brickpt.webp)

## Using the Brick procedural texture

Brick procedural texture can be found here: 
- Normal: [Normal](https://cdn.babylonjs.com/proceduralTexturesLibrary/babylon.brickProceduralTexture.js)
- Minified : [Minified](https://cdn.babylonjs.com/proceduralTexturesLibrary/babylon.brickProceduralTexture.min.js)

> [!WARNING]
> **Warning**
>
> The CDN should not be used in production environments. The purpose of our CDN is to serve Babylon packages to users learning how to use the platform or running small experiments. Once you've built an application and are ready to share it with the world at large, you should serve all packages from your own CDN.

A demo can be found here: [Playground: Brick Procedural Texture](https://playground.babylonjs.com/#1CL0BO#18)

This texture has 4 parameters:
- **numberOfBricksHeight** controls the number of bricks vertically (Int)
- **numberOfBricksWidth** controls the number of bricks horizontally (Int)
- **jointColor** changes the color of the joint between bricks (BABYLON.Color3/4)
- **brickColor** changes the color for the brick itself (BABYLON.Color3/4)

```javascript
var brickMaterial = new BABYLON.StandardMaterial("brickMat", scene);
var brickTexture = new BABYLON.BrickProceduralTexture("brickTex", 512, scene);
brickTexture.numberOfBricksHeight = 6;
brickTexture.numberOfBricksWidth = 10;
brickMaterial.diffuseTexture = brickTexture;
```
