Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@babylonjs/materials

Package Overview
Dependencies
Maintainers
1
Versions
543
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babylonjs/materials - npm Package Compare versions

Comparing version 4.0.0-alpha.19 to 4.0.0-alpha.20

cell/cell.fragment.d.ts

82

package.json

@@ -7,3 +7,3 @@ {

"description": "The Babylon.js materials library is a collection of advanced materials to be used in a Babylon.js scene.",
"version": "4.0.0-alpha.19",
"version": "4.0.0-alpha.20",
"repository": {

@@ -15,2 +15,8 @@ "type": "git",

"files": [
"cell/cell.fragment.d.ts",
"cell/cell.fragment.js",
"cell/cell.fragment.js.map",
"cell/cell.vertex.d.ts",
"cell/cell.vertex.js",
"cell/cell.vertex.js.map",
"cell/cellMaterial.d.ts",

@@ -28,2 +34,8 @@ "cell/cellMaterial.js",

"custom/index.js.map",
"fire/fire.fragment.d.ts",
"fire/fire.fragment.js",
"fire/fire.fragment.js.map",
"fire/fire.vertex.d.ts",
"fire/fire.vertex.js",
"fire/fire.vertex.js.map",
"fire/fireMaterial.d.ts",

@@ -35,2 +47,8 @@ "fire/fireMaterial.js",

"fire/index.js.map",
"fur/fur.fragment.d.ts",
"fur/fur.fragment.js",
"fur/fur.fragment.js.map",
"fur/fur.vertex.d.ts",
"fur/fur.vertex.js",
"fur/fur.vertex.js.map",
"fur/furMaterial.d.ts",

@@ -42,2 +60,8 @@ "fur/furMaterial.js",

"fur/index.js.map",
"gradient/gradient.fragment.d.ts",
"gradient/gradient.fragment.js",
"gradient/gradient.fragment.js.map",
"gradient/gradient.vertex.d.ts",
"gradient/gradient.vertex.js",
"gradient/gradient.vertex.js.map",
"gradient/gradientMaterial.d.ts",

@@ -49,2 +73,8 @@ "gradient/gradientMaterial.js",

"gradient/index.js.map",
"grid/grid.fragment.d.ts",
"grid/grid.fragment.js",
"grid/grid.fragment.js.map",
"grid/grid.vertex.d.ts",
"grid/grid.vertex.js",
"grid/grid.vertex.js.map",
"grid/gridMaterial.d.ts",

@@ -62,2 +92,8 @@ "grid/gridMaterial.js",

"lava/index.js.map",
"lava/lava.fragment.d.ts",
"lava/lava.fragment.js",
"lava/lava.fragment.js.map",
"lava/lava.vertex.d.ts",
"lava/lava.vertex.js",
"lava/lava.vertex.js.map",
"lava/lavaMaterial.d.ts",

@@ -117,2 +153,8 @@ "lava/lavaMaterial.js",

"mix/index.js.map",
"mix/mix.fragment.d.ts",
"mix/mix.fragment.js",
"mix/mix.fragment.js.map",
"mix/mix.vertex.d.ts",
"mix/mix.vertex.js",
"mix/mix.vertex.js.map",
"mix/mixMaterial.d.ts",

@@ -124,2 +166,8 @@ "mix/mixMaterial.js",

"normal/index.js.map",
"normal/normal.fragment.d.ts",
"normal/normal.fragment.js",
"normal/normal.fragment.js.map",
"normal/normal.vertex.d.ts",
"normal/normal.vertex.js",
"normal/normal.vertex.js.map",
"normal/normalMaterial.d.ts",

@@ -132,2 +180,8 @@ "normal/normalMaterial.js",

"shadowOnly/index.js.map",
"shadowOnly/shadowOnly.fragment.d.ts",
"shadowOnly/shadowOnly.fragment.js",
"shadowOnly/shadowOnly.fragment.js.map",
"shadowOnly/shadowOnly.vertex.d.ts",
"shadowOnly/shadowOnly.vertex.js",
"shadowOnly/shadowOnly.vertex.js.map",
"shadowOnly/shadowOnlyMaterial.d.ts",

@@ -139,2 +193,8 @@ "shadowOnly/shadowOnlyMaterial.js",

"simple/index.js.map",
"simple/simple.fragment.d.ts",
"simple/simple.fragment.js",
"simple/simple.fragment.js.map",
"simple/simple.vertex.d.ts",
"simple/simple.vertex.js",
"simple/simple.vertex.js.map",
"simple/simpleMaterial.d.ts",

@@ -146,2 +206,8 @@ "simple/simpleMaterial.js",

"sky/index.js.map",
"sky/sky.fragment.d.ts",
"sky/sky.fragment.js",
"sky/sky.fragment.js.map",
"sky/sky.vertex.d.ts",
"sky/sky.vertex.js",
"sky/sky.vertex.js.map",
"sky/skyMaterial.d.ts",

@@ -153,2 +219,8 @@ "sky/skyMaterial.js",

"terrain/index.js.map",
"terrain/terrain.fragment.d.ts",
"terrain/terrain.fragment.js",
"terrain/terrain.fragment.js.map",
"terrain/terrain.vertex.d.ts",
"terrain/terrain.vertex.js",
"terrain/terrain.vertex.js.map",
"terrain/terrainMaterial.d.ts",

@@ -172,2 +244,8 @@ "terrain/terrainMaterial.js",

"water/index.js.map",
"water/water.fragment.d.ts",
"water/water.fragment.js",
"water/water.fragment.js.map",
"water/water.vertex.d.ts",
"water/water.vertex.js",
"water/water.vertex.js.map",
"water/waterMaterial.d.ts",

@@ -187,3 +265,3 @@ "water/waterMaterial.js",

"dependencies": {
"@babylonjs/core": "4.0.0-alpha.19",
"@babylonjs/core": "4.0.0-alpha.20",
"tslib": "^1.9.3"

@@ -190,0 +268,0 @@ },

35

readme.md

@@ -8,45 +8,24 @@ Babylon.js Materials Library

## CDN
Compiled js files (minified and source) are offered on our public CDN here:
* https://preview.babylonjs.com/materialsLibrary/babylonjs.materials.js
* https://preview.babylonjs.com/materialsLibrary/babylonjs.materials.min.js
## NPM
To install using npm :
```
npm install --save babylonjs babylonjs-materials
npm install --save @babylonjs/core @babylonjs/materials
```
If using TypeScript, the typing needs to be added to tsconfig.json:
# How to use
```
....
"types": [
"babylonjs",
"babylonjs-materials",
"oneMoreDependencyThatIReallyNeed"
],
....
```
Afterwards it can be imported to the your project using:
Afterwards it can be imported to the project using:
```
import * as BABYLON from 'babylonjs';
import 'babylonjs-materials';
import { GridMaterial } from '@babylonjs/materials/Grid';
```
This will extend Babylon's namespace with the materials available:
And used as usual:
```
// Some awesome code
let skyMaterial = new BABYLON.SkyMaterial("skyMaterial", scene);
skyMaterial.backFaceCulling = false;
let gridMaterial = new GridMaterial("gridMaterial", scene);
// Some more awesome code
```
Using webpack to package your project will use the minified js file.
For more information you can have a look at our [our ES6 dedicated documentation](https://doc.babylonjs.com/features/es6_support).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc