Skip to content

Commit

Permalink
v4.0.0
Browse files Browse the repository at this point in the history
Former-commit-id: 6904ea076c4ea35e0575824244977a527ed34a4a
  • Loading branch information
deltakosh committed Apr 30, 2019
1 parent e93809f commit b0588e5
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 20 deletions.
50 changes: 45 additions & 5 deletions Playground/babylon.d.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16603,7 +16603,7 @@ declare module BABYLON {
*/
refreshBoundingInfo(applySkeleton?: boolean): InstancedMesh;
/** @hidden */private _preActivate(): InstancedMesh;
/** @hidden */private _activate(renderId: number): boolean;
/** @hidden */private _activate(renderId: number, intermediateRendering: boolean): boolean;
/** @hidden */private _postActivate(): void;
getWorldMatrix(): Matrix;
readonly isAnInstance: boolean;
Expand Down Expand Up @@ -23809,6 +23809,44 @@ declare module BABYLON {
}
}
declare module BABYLON {
/** @hidden */private class _FacetDataStorage {
facetPositions: Vector3[];
facetNormals: Vector3[];
facetPartitioning: number[][];
facetNb: number;
partitioningSubdivisions: number;
partitioningBBoxRatio: number;
facetDataEnabled: boolean;
facetParameters: any;
bbSize: Vector3;
subDiv: {
max: number;
X: number;
Y: number;
Z: number;
};
facetDepthSort: boolean;
facetDepthSortEnabled: boolean;
depthSortedIndices: IndicesArray;
depthSortedFacets: {
ind: number;
sqDistance: number;
}[];
facetDepthSortFunction: (f1: {
ind: number;
sqDistance: number;
}, f2: {
ind: number;
sqDistance: number;
}) => number;
facetDepthSortFrom: Vector3;
facetDepthSortOrigin: Vector3;
invertedMatrix: Matrix;
}
/**
* @hidden
**/private class _InternalAbstractMeshDataInfo {private _hasVertexAlpha: boolean;private _useVertexColors: boolean;private _numBoneInfluencers: number;private _applyFog: boolean;private _receiveShadows: boolean;private _facetData: _FacetDataStorage;private _visibility: number;private _skeleton: Nullable<Skeleton>;private _layerMask: number;private _computeBonesUsingShaders: boolean;private _isActive: boolean;private _onlyForInstances: boolean;private _isActiveIntermediate: boolean;private _onlyForInstancesIntermediate: boolean;
}
/**
* Class used to store all common mesh properties
*/
Expand Down Expand Up @@ -23869,7 +23907,7 @@ declare module BABYLON {
static readonly BILLBOARDMODE_Z: number;
/** Billboard on all axes */
static readonly BILLBOARDMODE_ALL: number;
private _internalAbstractMeshDataInfo;
/** @hidden */private _internalAbstractMeshDataInfo: _InternalAbstractMeshDataInfo;
/**
* The culling strategy to use to check whether the mesh must be rendered or not.
* This value can be changed at any time and will be used on the next render mesh selection.
Expand Down Expand Up @@ -23938,8 +23976,6 @@ declare module BABYLON {
*/
definedFacingForward: boolean;
/** @hidden */private _occlusionQuery: Nullable<WebGLQuery>;
/** @hidden */private _isActive: boolean;
/** @hidden */private _onlyForInstances: boolean;
/** @hidden */private _renderingGroup: Nullable<RenderingGroup>;
/**
* Gets or sets mesh visibility between 0 and 1 (default is 1)
Expand Down Expand Up @@ -24236,7 +24272,7 @@ declare module BABYLON {
readonly useBones: boolean;
/** @hidden */private _preActivate(): void;
/** @hidden */private _preActivateForIntermediateRendering(renderId: number): void;
/** @hidden */private _activate(renderId: number): boolean;
/** @hidden */private _activate(renderId: number, intermediateRendering: boolean): boolean;
/** @hidden */private _postActivate(): void;
/** @hidden */private _freeze(): void;
/** @hidden */private _unFreeze(): void;
Expand Down Expand Up @@ -26343,6 +26379,10 @@ declare module BABYLON {
private _loadingDivBackgroundColor;
private _loadingDiv;
private _loadingTextDiv;
/** Gets or sets the logo url to use for the default loading screen */
static DefaultLogoUrl: string;
/** Gets or sets the spinner url to use for the default loading screen */
static DefaultSpinnerUrl: string;
/**
* Creates a new default loading screen
* @param _renderingCanvas defines the canvas used to render the scene
Expand Down
4 changes: 2 additions & 2 deletions Tools/Gulp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "babylonjs",
"version": "3.3.0",
"version": "0.0.0",
"description": "Babylon.js is a 3D engine based on webgl and javascript",
"main": "",
"repository": {
Expand All @@ -13,4 +13,4 @@
"build": "gulp --max-old-space-size=8192 --tsLintFix",
"start": "gulp run --max-old-space-size=8192"
}
}
}
2 changes: 1 addition & 1 deletion Viewer/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
},
"name": "babylonjs-viewer-assets",
"description": "Compiled resources for the Babylon viewer.",
"version": "3.3.0-alpha.3",
"version": "0.0.0",
"repository": {
"type": "git",
"url": "https://github.com/BabylonJS/Babylon.js.git"
Expand Down
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
"name": "David CATUHE"
},
"contributors": [
"David ROUSSET",
"Sebastien VANDENBERGHE",
"Raanan Weber"
"Sebastien VANDENBERGHE"
],
"name": "babylonjs",
"description": "Babylon.js is a JavaScript 3D engine based on webgl.",
"version": "4.0.0-rc.3",
"version": "4.0.0",
"repository": {
"type": "git",
"url": "https://github.com/BabylonJS/Babylon.js.git"
Expand Down
4 changes: 2 additions & 2 deletions src/Engines/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -491,14 +491,14 @@ export class Engine {
*/
// Not mixed with Version for tooling purpose.
public static get NpmPackage(): string {
return "babylonjs@4.0.0-rc.3";
return "babylonjs@4.0.0";
}

/**
* Returns the current version of the framework
*/
public static get Version(): string {
return "4.0.0-rc.3";
return "4.0.0";
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/validation/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"root": "https://rawgit.com/BabylonJS/Website/master",
"root": "https://rawgit.com/BabylonJS/Website/master/build",
"tests": [
{
"title": "Unindexed mesh",
Expand Down
10 changes: 5 additions & 5 deletions tests/validation/validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function processCurrentScene(test, resultCanvas, result, renderImage, index, wai
currentScene.activeCamera.useAutoRotationBehavior = false;
}
engine.runRenderLoop(function() {
try {
try {
currentScene.render();
renderCount--;

Expand Down Expand Up @@ -324,10 +324,10 @@ function runTest(index, done) {
try {
request.onreadystatechange = null;

var scriptToRun = request.responseText.replace(/..\/..\/assets\//g, config.root + "/Assets/");
scriptToRun = scriptToRun.replace(/..\/..\/Assets\//g, config.root + "/Assets/");
scriptToRun = scriptToRun.replace(/\/assets\//g, config.root + "/Assets/");
scriptToRun = scriptToRun.replace(/\/Assets\//g, config.root + "/Assets/");
var scriptToRun = request.responseText.replace(/..\/..\/assets\//g, config.root + "/assets/");
scriptToRun = scriptToRun.replace(/..\/..\/Assets\//g, config.root + "/assets/");
scriptToRun = scriptToRun.replace(/\/assets\//g, config.root + "/assets/");
scriptToRun = scriptToRun.replace(/\/Assets\//g, config.root + "/assets/");

if (test.replace) {
var split = test.replace.split(",");
Expand Down

0 comments on commit b0588e5

Please sign in to comment.