Skip to content

4.0.0-alpha.12 #5627

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24,536 changes: 12,269 additions & 12,267 deletions Playground/babylon.d.txt

Large diffs are not rendered by default.

22,430 changes: 11,216 additions & 11,214 deletions dist/preview release/babylon.d.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/preview release/babylon.js

Large diffs are not rendered by default.

136 changes: 92 additions & 44 deletions dist/preview release/babylon.max.js

Large diffs are not rendered by default.

136 changes: 92 additions & 44 deletions dist/preview release/babylon.no-module.max.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/preview release/babylon.worker.js

Large diffs are not rendered by default.

136 changes: 92 additions & 44 deletions dist/preview release/es6.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/preview release/glTF2Interface/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "babylonjs-gltf2interface",
"description": "A typescript declaration of babylon's gltf2 inteface.",
"version": "4.0.0-alpha.11",
"version": "4.0.0-alpha.12",
"repository": {
"type": "git",
"url": "https://github.com/BabylonJS/Babylon.js.git"
Expand Down
2 changes: 1 addition & 1 deletion dist/preview release/gui/babylon.gui.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/preview release/gui/babylon.gui.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/preview release/gui/babylon.gui.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/preview release/gui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
},
"name": "babylonjs-gui",
"description": "The Babylon.js GUI library is an extension you can use to generate interactive user interface. It is build on top of the DynamicTexture.",
"version": "4.0.0-alpha.11",
"version": "4.0.0-alpha.12",
"repository": {
"type": "git",
"url": "https://github.com/BabylonJS/Babylon.js.git"
Expand All @@ -27,7 +27,7 @@
],
"license": "Apache-2.0",
"dependencies": {
"babylonjs": "4.0.0-alpha.11"
"babylonjs": "4.0.0-alpha.12"
},
"engines": {
"node": "*"
Expand Down
12 changes: 6 additions & 6 deletions dist/preview release/inspector/babylon.inspector.bundle.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dist/preview release/inspector/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
},
"name": "babylonjs-inspector",
"description": "The Babylon.js inspector.",
"version": "4.0.0-alpha.11",
"version": "4.0.0-alpha.12",
"repository": {
"type": "git",
"url": "https://github.com/BabylonJS/Babylon.js.git"
Expand All @@ -28,10 +28,10 @@
],
"license": "Apache-2.0",
"dependencies": {
"babylonjs": "4.0.0-alpha.11",
"babylonjs-gui": "4.0.0-alpha.11",
"babylonjs-loaders": "4.0.0-alpha.11",
"babylonjs-serializers": "4.0.0-alpha.11"
"babylonjs": "4.0.0-alpha.12",
"babylonjs-gui": "4.0.0-alpha.12",
"babylonjs-loaders": "4.0.0-alpha.12",
"babylonjs-serializers": "4.0.0-alpha.12"
},
"engines": {
"node": "*"
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/preview release/loaders/babylon.glTFFileLoader.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/preview release/loaders/babylonjs.loaders.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/preview release/loaders/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
},
"name": "babylonjs-loaders",
"description": "The Babylon.js file loaders library is an extension you can use to load different 3D file types into a Babylon scene.",
"version": "4.0.0-alpha.11",
"version": "4.0.0-alpha.12",
"repository": {
"type": "git",
"url": "https://github.com/BabylonJS/Babylon.js.git"
Expand All @@ -27,8 +27,8 @@
],
"license": "Apache-2.0",
"dependencies": {
"babylonjs-gltf2interface": "4.0.0-alpha.11",
"babylonjs": "4.0.0-alpha.11"
"babylonjs-gltf2interface": "4.0.0-alpha.12",
"babylonjs": "4.0.0-alpha.12"
},
"engines": {
"node": "*"
Expand Down
106 changes: 106 additions & 0 deletions dist/preview release/materialsLibrary/babylon.skyMaterial.d.ts
Original file line number Diff line number Diff line change
@@ -1,29 +1,135 @@

declare module BABYLON {
/**
* This is the sky material which allows to create dynamic and texture free effects for skyboxes.
* @see https://doc.babylonjs.com/extensions/sky
*/
class SkyMaterial extends PushMaterial {
/**
* Defines the overall luminance of sky in interval ]0, 1[.
*/
luminance: number;
/**
* Defines the amount (scattering) of haze as opposed to molecules in atmosphere.
*/
turbidity: number;
/**
* Defines the sky appearance (light intensity).
*/
rayleigh: number;
/**
* Defines the mieCoefficient in interval [0, 0.1] which affects the property .mieDirectionalG.
*/
mieCoefficient: number;
/**
* Defines the amount of haze particles following the Mie scattering theory.
*/
mieDirectionalG: number;
/**
* Defines the distance of the sun according to the active scene camera.
*/
distance: number;
/**
* Defines the sun inclination, in interval [-0.5, 0.5]. When the inclination is not 0, the sun is said
* "inclined".
*/
inclination: number;
/**
* Defines the solar azimuth in interval [0, 1]. The azimuth is the angle in the horizontal plan between
* an object direction and a reference direction.
*/
azimuth: number;
/**
* Defines the sun position in the sky on (x,y,z). If the property .useSunPosition is set to false, then
* the property is overriden by the inclination and the azimuth and can be read at any moment.
*/
sunPosition: Vector3;
/**
* Defines if the sun position should be computed (inclination and azimuth) according to the given
* .sunPosition property.
*/
useSunPosition: boolean;
/**
* Defines an offset vector used to get a horizon offset.
* @example skyMaterial.cameraOffset.y = camera.globalPosition.y // Set horizon relative to 0 on the Y axis
*/
cameraOffset: Vector3;
private _cameraPosition;
private _renderId;
/**
* Instantiates a new sky material.
* This material allows to create dynamic and texture free
* effects for skyboxes by taking care of the atmosphere state.
* @see https://doc.babylonjs.com/extensions/sky
* @param name Define the name of the material in the scene
* @param scene Define the scene the material belong to
*/
constructor(name: string, scene: Scene);
/**
* Specifies if the material will require alpha blending
* @returns a boolean specifying if alpha blending is needed
*/
needAlphaBlending(): boolean;
/**
* Specifies if this material should be rendered in alpha test mode
* @returns false as the sky material doesn't need alpha testing.
*/
needAlphaTesting(): boolean;
/**
* Get the texture used for alpha test purpose.
* @returns null as the sky material has no texture.
*/
getAlphaTestTexture(): Nullable<BaseTexture>;
/**
* Get if the submesh is ready to be used and all its information available.
* Child classes can use it to update shaders
* @param mesh defines the mesh to check
* @param subMesh defines which submesh to check
* @param useInstances specifies that instances should be used
* @returns a boolean indicating that the submesh is ready or not
*/
isReadyForSubMesh(mesh: AbstractMesh, subMesh: SubMesh, useInstances?: boolean): boolean;
/**
* Binds the submesh to this material by preparing the effect and shader to draw
* @param world defines the world transformation matrix
* @param mesh defines the mesh containing the submesh
* @param subMesh defines the submesh to bind the material to
*/
bindForSubMesh(world: Matrix, mesh: Mesh, subMesh: SubMesh): void;
/**
* Get the list of animatables in the material.
* @returns the list of animatables object used in the material
*/
getAnimatables(): IAnimatable[];
/**
* Disposes the material
* @param forceDisposeEffect specifies if effects should be forcefully disposed
*/
dispose(forceDisposeEffect?: boolean): void;
/**
* Makes a duplicate of the material, and gives it a new name
* @param name defines the new name for the duplicated material
* @returns the cloned material
*/
clone(name: string): SkyMaterial;
/**
* Serializes this material in a JSON representation
* @returns the serialized material object
*/
serialize(): any;
/**
* Gets the current class name of the material e.g. "SkyMaterial"
* Mainly use in serialization.
* @returns the class name
*/
getClassName(): string;
/**
* Creates a sky material from parsed material data
* @param source defines the JSON representation of the material
* @param scene defines the hosting scene
* @param rootUrl defines the root URL to use to load textures and relative dependencies
* @returns a new sky material
*/
static Parse(source: any, scene: Scene, rootUrl: string): SkyMaterial;
}
}
Loading