@zappar/zappar-babylonjs
Advanced tools
Comparing version 0.3.27 to 0.3.28
# Changelog | ||
## [0.3.28] - 2021-07-05 | ||
## [0.3.28] - 2021-07-29 | ||
### Fixed | ||
- Some readme inconsistencies. | ||
## [0.3.27] - 2021-07-05 | ||
### Added | ||
@@ -6,0 +12,0 @@ |
/** | ||
* SDK version. | ||
*/ | ||
declare const VERSION = "0.3.27"; | ||
declare const VERSION = "0.3.28"; | ||
export default VERSION; |
@@ -6,4 +6,4 @@ "use strict"; | ||
*/ | ||
const VERSION = "0.3.27"; | ||
const VERSION = "0.3.28"; | ||
console.log(`Zappar for BabylonJS v${VERSION}`); | ||
exports.default = VERSION; |
{ | ||
"name": "@zappar/zappar-babylonjs", | ||
"version": "0.3.27", | ||
"version": "0.3.28", | ||
"description": "BabylonJS wrappers for Zappar's computer vision library", | ||
@@ -39,12 +39,12 @@ "main": "lib/src/index.js", | ||
"devDependencies": { | ||
"@types/expect-puppeteer": "^4.4.5", | ||
"@types/jest": "^26.0.23", | ||
"@types/expect-puppeteer": "^4.4.6", | ||
"@types/jest": "^26.0.24", | ||
"@types/jest-environment-puppeteer": "^4.4.1", | ||
"@types/jest-image-snapshot": "^4.3.0", | ||
"@types/jest-image-snapshot": "^4.3.1", | ||
"@types/node": "^15.3.0", | ||
"@types/puppeteer": "^5.4.3", | ||
"@types/puppeteer": "^5.4.4", | ||
"@types/stats.js": "^0.17.0", | ||
"@typescript-eslint/eslint-plugin": "^4.27.0", | ||
"@typescript-eslint/parser": "^4.27.0", | ||
"@zappar/test-utils": "0.0.3", | ||
"@typescript-eslint/eslint-plugin": "^4.28.5", | ||
"@typescript-eslint/parser": "^4.28.5", | ||
"@zappar/jest-console-logs": "^1.0.0", | ||
"babylonjs": "^4.2.0", | ||
@@ -54,3 +54,3 @@ "babylonjs-gui": "^4.2.0", | ||
"copy-webpack-plugin": "^8.1.1", | ||
"eslint": "^7.28.0", | ||
"eslint": "^7.31.0", | ||
"eslint-config-airbnb-base": "^14.2.1", | ||
@@ -62,16 +62,16 @@ "eslint-config-prettier": "^8.3.0", | ||
"eslint-webpack-plugin": "^2.5.4", | ||
"html-webpack-plugin": "^5.3.1", | ||
"html-webpack-plugin": "^5.3.2", | ||
"husky": "^4.3.8", | ||
"jest": "^26.6.3", | ||
"jest-image-snapshot": "^4.5.0", | ||
"jest": "^27.0.6", | ||
"jest-image-snapshot": "^4.5.1", | ||
"jest-puppeteer": "^5.0.3", | ||
"lint-staged": "^11.0.0", | ||
"prettier": "^2.3.1", | ||
"puppeteer": "^9.1.1", | ||
"prettier": "^2.3.2", | ||
"puppeteer": "^10.1.0", | ||
"stats.js": "^0.17.0", | ||
"ts-jest": "^26.5.6", | ||
"ts-loader": "^9.1.2", | ||
"typedoc": "^0.21.0", | ||
"typescript": "^4.2.4", | ||
"webpack": "^5.37.0", | ||
"ts-jest": "^27.0.4", | ||
"ts-loader": "^9.2.4", | ||
"typedoc": "^0.21.4", | ||
"typescript": "4.2.4", | ||
"webpack": "^5.47.1", | ||
"webpack-cli": "^4.7.0", | ||
@@ -78,0 +78,0 @@ "webpack-dev-server": "^3.11.1" |
@@ -64,3 +64,3 @@ # Zappar for Babylon.js | ||
<!-- Added by: zapparadmin, at: Tue Jul 13 15:40:23 BST 2021 --> | ||
<!-- Added by: zapparadmin, at: Thu Jul 29 17:36:32 BST 2021 --> | ||
@@ -105,3 +105,3 @@ <!--te--> | ||
```html | ||
<script src="https://libs.zappar.com/zappar-babylon/0.3.27/zappar-babylon.js"></script> | ||
<script src="https://libs.zappar.com/zappar-babylon/0.3.28/zappar-babylon.js"></script> | ||
``` | ||
@@ -320,12 +320,7 @@ | ||
```ts | ||
const env = new ZapparBabylon.CameraEnvironmentMap(camera, engine); | ||
const envMap = new ZapparBabylon.CameraEnvironmentMap(camera, engine); | ||
``` | ||
Attach the map to your scene to affect all relevant materials: | ||
Attach it to specific materials: | ||
```ts | ||
scene.environmentTexture = envMap.environmentMap; | ||
``` | ||
Or attach it to specific materials, if you prefer: | ||
```ts | ||
material.environmentTexture = envMap.environmentMap; | ||
@@ -332,0 +327,0 @@ ``` |
Sorry, the diff of this file is too big to display
6392356
735