David `Deltakosh` Catuhe 19b9c4ab1e Nightly 5 лет назад
..
babylon.brickProceduralTexture.js 19b9c4ab1e Nightly 5 лет назад
babylon.brickProceduralTexture.js.map 519b343770 nightly 5 лет назад
babylon.brickProceduralTexture.min.js 519b343770 nightly 5 лет назад
babylon.cloudProceduralTexture.js 19b9c4ab1e Nightly 5 лет назад
babylon.cloudProceduralTexture.js.map 519b343770 nightly 5 лет назад
babylon.cloudProceduralTexture.min.js 519b343770 nightly 5 лет назад
babylon.fireProceduralTexture.js 19b9c4ab1e Nightly 5 лет назад
babylon.fireProceduralTexture.js.map 519b343770 nightly 5 лет назад
babylon.fireProceduralTexture.min.js 19b9c4ab1e Nightly 5 лет назад
babylon.grassProceduralTexture.js 19b9c4ab1e Nightly 5 лет назад
babylon.grassProceduralTexture.js.map 519b343770 nightly 5 лет назад
babylon.grassProceduralTexture.min.js 19b9c4ab1e Nightly 5 лет назад
babylon.marbleProceduralTexture.js 19b9c4ab1e Nightly 5 лет назад
babylon.marbleProceduralTexture.js.map 519b343770 nightly 5 лет назад
babylon.marbleProceduralTexture.min.js 19b9c4ab1e Nightly 5 лет назад
babylon.normalMapProceduralTexture.js 19b9c4ab1e Nightly 5 лет назад
babylon.normalMapProceduralTexture.js.map 519b343770 nightly 5 лет назад
babylon.normalMapProceduralTexture.min.js 19b9c4ab1e Nightly 5 лет назад
babylon.perlinNoiseProceduralTexture.js 19b9c4ab1e Nightly 5 лет назад
babylon.perlinNoiseProceduralTexture.js.map 519b343770 nightly 5 лет назад
babylon.perlinNoiseProceduralTexture.min.js 19b9c4ab1e Nightly 5 лет назад
babylon.roadProceduralTexture.js 19b9c4ab1e Nightly 5 лет назад
babylon.roadProceduralTexture.js.map 519b343770 nightly 5 лет назад
babylon.roadProceduralTexture.min.js 19b9c4ab1e Nightly 5 лет назад
babylon.starfieldProceduralTexture.js 19b9c4ab1e Nightly 5 лет назад
babylon.starfieldProceduralTexture.js.map 519b343770 nightly 5 лет назад
babylon.starfieldProceduralTexture.min.js 19b9c4ab1e Nightly 5 лет назад
babylon.woodProceduralTexture.js 19b9c4ab1e Nightly 5 лет назад
babylon.woodProceduralTexture.js.map 519b343770 nightly 5 лет назад
babylon.woodProceduralTexture.min.js 19b9c4ab1e Nightly 5 лет назад
babylonjs.proceduralTextures.d.ts f96869a173 Switched to TS 3.7.3 5 лет назад
babylonjs.proceduralTextures.js 19b9c4ab1e Nightly 5 лет назад
babylonjs.proceduralTextures.js.map 519b343770 nightly 5 лет назад
babylonjs.proceduralTextures.min.js 19b9c4ab1e Nightly 5 лет назад
babylonjs.proceduralTextures.module.d.ts 2a9b2c3363 Nightly 5 лет назад
package.json e3dc2b9cde nightly 5 лет назад
readme-es6.md 2e710a8ebe dedicated es6 readme 6 лет назад
readme.md 2561068aad Small error in the readme files of the submodules. 7 лет назад

readme-es6.md

Babylon.js Procedural Textures Library

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

Installation instructions

To install using npm :

npm install --save @babylonjs/core @babylonjs/procedural-textures

How to use

Afterwards it can be imported to the your project using:

import { StandardMaterial } from '@babylonjs/core/Materials/standardMaterial';
import { FireProceduralTexture } from '@babylonjs/procedural-textures/fireProceduralTexture';

And used as usual:

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

For more information you can have a look at our our ES6 dedicated documentation.