Skip to content
Branch: master
Find file History
Latest commit 6d3c6c9 Aug 19, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
babylon.brickProceduralTexture.js Nightly Aug 19, 2019
babylon.brickProceduralTexture.js.map Nightly Aug 19, 2019
babylon.brickProceduralTexture.min.js Nightly Feb 26, 2019
babylon.cloudProceduralTexture.js Nightly Aug 19, 2019
babylon.cloudProceduralTexture.js.map Nightly Aug 19, 2019
babylon.cloudProceduralTexture.min.js Nightly Feb 26, 2019
babylon.fireProceduralTexture.js Nightly Aug 19, 2019
babylon.fireProceduralTexture.js.map Nightly Aug 19, 2019
babylon.fireProceduralTexture.min.js Nightly Feb 26, 2019
babylon.grassProceduralTexture.js Nightly Aug 19, 2019
babylon.grassProceduralTexture.js.map Nightly Aug 19, 2019
babylon.grassProceduralTexture.min.js Nightly Feb 26, 2019
babylon.marbleProceduralTexture.js Nightly Aug 19, 2019
babylon.marbleProceduralTexture.js.map Nightly Aug 19, 2019
babylon.marbleProceduralTexture.min.js Nightly Feb 26, 2019
babylon.normalMapProceduralTexture.js Nightly Aug 19, 2019
babylon.normalMapProceduralTexture.js.map Nightly Aug 19, 2019
babylon.normalMapProceduralTexture.min.js Nightly Feb 26, 2019
babylon.perlinNoiseProceduralTexture.js Nightly Aug 19, 2019
babylon.perlinNoiseProceduralTexture.js.map Nightly Aug 19, 2019
babylon.perlinNoiseProceduralTexture.min.js Nightly Feb 26, 2019
babylon.roadProceduralTexture.js Nightly Aug 19, 2019
babylon.roadProceduralTexture.js.map Nightly Aug 19, 2019
babylon.roadProceduralTexture.min.js Nightly Feb 26, 2019
babylon.starfieldProceduralTexture.js Nightly Aug 19, 2019
babylon.starfieldProceduralTexture.js.map Nightly Aug 19, 2019
babylon.starfieldProceduralTexture.min.js Nightly Feb 26, 2019
babylon.woodProceduralTexture.js Nightly Aug 19, 2019
babylon.woodProceduralTexture.js.map Nightly Aug 19, 2019
babylon.woodProceduralTexture.min.js Nightly Feb 26, 2019
babylonjs.proceduralTextures.d.ts nightly (with the new modules!!!) Jan 9, 2019
babylonjs.proceduralTextures.js Nightly Aug 19, 2019
babylonjs.proceduralTextures.js.map Nightly Aug 19, 2019
babylonjs.proceduralTextures.min.js Nightly Feb 26, 2019
babylonjs.proceduralTextures.module.d.ts nightly (with the new modules!!!) Jan 9, 2019
package.json 4.1.0-alpha.15 Aug 14, 2019
readme-es6.md dedicated es6 readme Jan 14, 2019
readme.md Small error in the readme files of the submodules. Oct 23, 2017

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.