Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
babylon.brickProceduralTexture.d.ts
babylon.brickProceduralTexture.js
babylon.brickProceduralTexture.js.map
babylon.brickProceduralTexture.min.js
babylon.cloudProceduralTexture.d.ts
babylon.cloudProceduralTexture.js
babylon.cloudProceduralTexture.js.map
babylon.cloudProceduralTexture.min.js
babylon.fireProceduralTexture.d.ts
babylon.fireProceduralTexture.js
babylon.fireProceduralTexture.js.map
babylon.fireProceduralTexture.min.js
babylon.grassProceduralTexture.d.ts
babylon.grassProceduralTexture.js
babylon.grassProceduralTexture.js.map
babylon.grassProceduralTexture.min.js
babylon.marbleProceduralTexture.d.ts
babylon.marbleProceduralTexture.js
babylon.marbleProceduralTexture.js.map
babylon.marbleProceduralTexture.min.js
babylon.normalMapProceduralTexture.d.ts
babylon.normalMapProceduralTexture.js
babylon.normalMapProceduralTexture.js.map
babylon.normalMapProceduralTexture.min.js
babylon.perlinNoiseProceduralTexture.d.ts
babylon.perlinNoiseProceduralTexture.js
babylon.perlinNoiseProceduralTexture.js.map
babylon.perlinNoiseProceduralTexture.min.js
babylon.roadProceduralTexture.d.ts
babylon.roadProceduralTexture.js
babylon.roadProceduralTexture.js.map
babylon.roadProceduralTexture.min.js
babylon.starfieldProceduralTexture.d.ts
babylon.starfieldProceduralTexture.js
babylon.starfieldProceduralTexture.js.map
babylon.starfieldProceduralTexture.min.js
babylon.waterProceduralTexture.d.ts
babylon.waterProceduralTexture.js
babylon.waterProceduralTexture.min.js
babylon.woodProceduralTexture.d.ts
babylon.woodProceduralTexture.js
babylon.woodProceduralTexture.js.map
babylon.woodProceduralTexture.min.js
babylonjs.proceduralTextures.d.ts
babylonjs.proceduralTextures.js
babylonjs.proceduralTextures.js.map
babylonjs.proceduralTextures.min.js
babylonjs.proceduralTextures.module.d.ts
package.json
readme-es6.md
readme.md

readme.md

Babylon.js Procedural Textures Library

For usage documentation please visit http://doc.babylonjs.com/extensions and choose "procedural textures library".

Installation instructions

CDN

Compiled js files (minified and source) are offered on our public CDN here:

NPM

To install using npm :

npm install --save babylonjs babylonjs-procedural-textures

If using TypeScript, the typing needs to be added to tsconfig.json:

    ....
    "types": [
        "babylonjs",
        "babylonjs-procedural-textures",
        "oneMoreDependencyThatIReallyNeed"
    ],
    ....

Afterwards it can be imported to the project using:

import * as BABYLON from 'babylonjs';
import 'babylonjs-procedural-textures';

This will extend Babylon's namespace with the procedural textures available:

// Some awesome code
var fireMaterial = new BABYLON.StandardMaterial("fontainSculptur2", scene);
var fireTexture = new BABYLON.FireProceduralTexture("fire", 256, scene);
fireMaterial.diffuseTexture = fireTexture;
fireMaterial.opacityTexture = fireTexture;
// Some more awesome code

Using webpack to package your project will use the minified js file.

You can’t perform that action at this time.