docstring_tokens
stringlengths
0
76.5k
code_tokens
stringlengths
75
1.81M
label_window
listlengths
4
2.12k
html_url
stringlengths
74
116
file_name
stringlengths
3
311
public hasSpecificTrigger(trigger: number, parameterPredicate?: (parameter: any) => boolean): boolean {
<mask> * Does this action manager handles actions of a given trigger <mask> * @param {number} trigger - the trigger to be tested <mask> * @return {boolean} whether the trigger is handeled <mask> */ <mask> public hasSpecificTrigger(trigger: number): boolean { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/325c51c9d56d695163e74596d44885292d2a1ee4
src/Actions/babylon.actionManager.ts
if (parameterPredicate) { if (parameterPredicate(action.getTriggerParameter())) { return true; } } else { return true; }
<mask> for (var index = 0; index < this.actions.length; index++) { <mask> var action = this.actions[index]; <mask> <mask> if (action.trigger === trigger) { <mask> return true; <mask> } <mask> } <mask> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/325c51c9d56d695163e74596d44885292d2a1ee4
src/Actions/babylon.actionManager.ts
/** * Use matrix interpolation instead of using direct key value when animating matrices */
<mask> STEP = 1 <mask> } <mask> <mask> export class Animation { <mask> public static AllowMatricesInterpolation = false; <mask> <mask> /** <mask> * When matrix interpolation is enabled, this boolean forces the system to use Matrix.DecomposeLerp instead of Matrix.Lerp. ...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/325c51c9d56d695163e74596d44885292d2a1ee4
src/Animations/babylon.animation.ts
/** * When matrix interpolation is enabled, this boolean forces the system to use Matrix.DecomposeLerp instead of Matrix.Lerp. Interpolation is more precise but slower */ public static AllowMatrixDecomposeForInterpolation = true;
<mask> * Use matrix interpolation instead of using direct key value when animating matrices <mask> */ <mask> public static AllowMatricesInterpolation = false; <mask> <mask> private _keys: Array<IAnimationKey>; <mask> private _easingFunction: IEasingFunction; <mask> <m...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/325c51c9d56d695163e74596d44885292d2a1ee4
src/Animations/babylon.animation.ts
if (Animation.AllowMatrixDecomposeForInterpolation) { return Matrix.DecomposeLerp(startValue, endValue, gradient); }
<mask> return Color3.Lerp(startValue, endValue, gradient); <mask> } <mask> <mask> public matrixInterpolateFunction(startValue: Matrix, endValue: Matrix, gradient: number): Matrix { <mask> return Matrix.Lerp(startValue, endValue, gradient); <mask> } <mask> <mask>...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/325c51c9d56d695163e74596d44885292d2a1ee4
src/Animations/babylon.animation.ts
if (Animation.AllowMatrixDecomposeForInterpolation) { if (this._currentValue) { Matrix.DecomposeLerpToRef(this._originalBlendValue, currentValue, this._blendingFactor, this._currentValue); } else { ...
<mask> this._currentValue = currentValue; <mask> } <mask> <mask> } else if (this._originalBlendValue.m) { // Matrix <mask> this._currentValue = Matrix.Lerp(this._originalBlendValue, currentValue, this._blendingFactor); <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/325c51c9d56d695163e74596d44885292d2a1ee4
src/Animations/babylon.runtimeAnimation.ts
* Sets texture matrix rotation angle around Y axis in radians.
<mask> } <mask> <mask> protected _rotationY: number = 0; <mask> /** <mask> * Sets texture matrix rotation angle (theta) Y in radians. <mask> */ <mask> public set rotationY(value: number) { <mask> this._rotationY = value; <mask> this.set...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/325c51c9d56d695163e74596d44885292d2a1ee4
src/Materials/Textures/babylon.hdrCubeTexture.ts
* Gets texture matrix rotation angle around Y axis radians.
<mask> this._rotationY = value; <mask> this.setReflectionTextureMatrix(BABYLON.Matrix.RotationY(this._rotationY)); <mask> } <mask> /** <mask> * Gets texture matrix rotation angle (theta) Y radians. <mask> */ <mask> public get rotationY(): number {...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/325c51c9d56d695163e74596d44885292d2a1ee4
src/Materials/Textures/babylon.hdrCubeTexture.ts
<mask> <mask> public static SlerpToRef(left: Quaternion, right: Quaternion, amount: number, result: Quaternion): void { <mask> var num2; <mask> var num3; <mask> var num = amount; <mask> var num4 = (((left.x * right.x) + (left.y * right.y)) + (left.z * right...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/325c51c9d56d695163e74596d44885292d2a1ee4
src/Math/babylon.math.ts
num3 = 1 - amount; num2 = flag ? -amount : amount;
<mask> num4 = -num4; <mask> } <mask> <mask> if (num4 > 0.999999) { <mask> num3 = 1 - num; <mask> num2 = flag ? -num : num; <mask> } <mask> else { <mask> var num5 = Math.acos(num4); <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/325c51c9d56d695163e74596d44885292d2a1ee4
src/Math/babylon.math.ts
num3 = (Math.sin((1.0 - amount) * num5)) * num6; num2 = flag ? ((-Math.sin(amount * num5)) * num6) : ((Math.sin(amount * num5)) * num6);
<mask> } <mask> else { <mask> var num5 = Math.acos(num4); <mask> var num6 = (1.0 / Math.sin(num5)); <mask> num3 = (Math.sin((1.0 - num) * num5)) * num6; <mask> num2 = flag ? ((-Math.sin(num * num5)) * num6) : ((Math.sin(num * ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/325c51c9d56d695163e74596d44885292d2a1ee4
src/Math/babylon.math.ts
public decompose(scale: Vector3, rotation?: Quaternion, translation?: Vector3): boolean { if (translation) { translation.x = this.m[12]; translation.y = this.m[13]; translation.z = this.m[14]; }
<mask> * @param rotation defines the rotation quaternion passed as a reference to update <mask> * @param translation defines the translation vector3 passed as a reference to update <mask> * @returns true if operation was successful <mask> */ <mask> public decompose(scale...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/325c51c9d56d695163e74596d44885292d2a1ee4
src/Math/babylon.math.ts
if (rotation) { if (scale.x === 0 || scale.y === 0 || scale.z === 0) { rotation.x = 0; rotation.y = 0; rotation.z = 0; rotation.w = 1; return false; }
<mask> if (this.determinant() <= 0) { <mask> scale.y *= -1; <mask> } <mask> <mask> if (scale.x === 0 || scale.y === 0 || scale.z === 0) { <mask> rotation.x = 0; <mask> rotation.y = 0; <mask> rotation.z = 0; <ma...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/325c51c9d56d695163e74596d44885292d2a1ee4
src/Math/babylon.math.ts
Matrix.FromValuesToRef( this.m[0] / scale.x, this.m[1] / scale.x, this.m[2] / scale.x, 0, this.m[4] / scale.y, this.m[5] / scale.y, this.m[6] / scale.y, 0, this.m[8] / scale.z, this.m[9] / scale.z, this.m[10] / scale.z, 0, ...
<mask> rotation.w = 1; <mask> return false; <mask> } <mask> <mask> Matrix.FromValuesToRef( <mask> this.m[0] / scale.x, this.m[1] / scale.x, this.m[2] / scale.x, 0, <mask> this.m[4] / scale.y, this.m[5] / scale.y, this.m[6] /...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/325c51c9d56d695163e74596d44885292d2a1ee4
src/Math/babylon.math.ts
Quaternion.FromRotationMatrixToRef(MathTmp.Matrix[0], rotation); }
<mask> this.m[4] / scale.y, this.m[5] / scale.y, this.m[6] / scale.y, 0, <mask> this.m[8] / scale.z, this.m[9] / scale.z, this.m[10] / scale.z, 0, <mask> 0, 0, 0, 1, MathTmp.Matrix[0]); <mask> <mask> Quaternion.FromRotationMatrixToRef(MathTmp.Matrix[0], ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/325c51c9d56d695163e74596d44885292d2a1ee4
src/Math/babylon.math.ts
var result = Matrix.Zero(); Matrix.DecomposeLerpToRef(startValue, endValue, gradient, result); return result; } /** * Update a matrix to values which are computed by: * * decomposing the the "startValue" and "endValue" matrices into their re...
<mask> * @param gradient defines the gradient between the two matrices <mask> * @returns the new matrix <mask> */ <mask> public static DecomposeLerp(startValue: Matrix, endValue: Matrix, gradient: number): Matrix { <mask> var startScale = new Vector3(0, 0, 0); <mask>...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/325c51c9d56d695163e74596d44885292d2a1ee4
src/Math/babylon.math.ts
var endScale = MathTmp.Vector3[2]; var endRotation = MathTmp.Quaternion[1]; var endTranslation = MathTmp.Vector3[3];
<mask> var startRotation = new Quaternion(); <mask> var startTranslation = new Vector3(0, 0, 0); <mask> startValue.decompose(startScale, startRotation, startTranslation); <mask> <mask> var endScale = new Vector3(0, 0, 0); <mask> var endRotation = new Qu...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/325c51c9d56d695163e74596d44885292d2a1ee4
src/Math/babylon.math.ts
var resultScale = MathTmp.Vector3[4]; Vector3.LerpToRef(startScale, endScale, gradient, resultScale); var resultRotation = MathTmp.Quaternion[2]; Quaternion.SlerpToRef(startRotation, endRotation, gradient, resultRotation); var resultTranslati...
<mask> var endRotation = new Quaternion(); <mask> var endTranslation = new Vector3(0, 0, 0); <mask> endValue.decompose(endScale, endRotation, endTranslation); <mask> <mask> var resultScale = Vector3.Lerp(startScale, endScale, gradient); <mask> var resul...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/325c51c9d56d695163e74596d44885292d2a1ee4
src/Math/babylon.math.ts
Matrix.ComposeToRef(resultScale, resultRotation, resultTranslation, result); }
<mask> var resultScale = Vector3.Lerp(startScale, endScale, gradient); <mask> var resultRotation = Quaternion.Slerp(startRotation, endRotation, gradient); <mask> var resultTranslation = Vector3.Lerp(startTranslation, endTranslation, gradient); <mask> <mask> return M...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/325c51c9d56d695163e74596d44885292d2a1ee4
src/Math/babylon.math.ts
public static Vector3: Vector3[] = [Vector3.Zero(), Vector3.Zero(), Vector3.Zero(), Vector3.Zero(), Vector3.Zero(), Vector3.Zero()];
<mask> Matrix.Zero(), Matrix.Zero()]; // 6 temp Matrices at once should be enough <mask> } <mask> // Same as Tmp but not exported to keep it onyl for math functions to avoid conflicts <mask> class MathTmp { <mask> public static Vector3: Vector3[] = [Vector3.Zero()];...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/325c51c9d56d695163e74596d44885292d2a1ee4
src/Math/babylon.math.ts
public static Quaternion: Quaternion[] = [Quaternion.Zero(), Quaternion.Zero(), Quaternion.Zero()];
<mask> // Same as Tmp but not exported to keep it onyl for math functions to avoid conflicts <mask> class MathTmp { <mask> public static Vector3: Vector3[] = [Vector3.Zero()]; <mask> public static Matrix: Matrix[] = [Matrix.Zero(), Matrix.Zero()]; <mask> public static Quaternion: Qu...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/325c51c9d56d695163e74596d44885292d2a1ee4
src/Math/babylon.math.ts
var holder = target._lateAnimationHolders[path]; let originalValue = holder.animations[0].originalValue;
<mask> for (var index = 0; index < this._registeredForLateAnimationBindings.length; index++) { <mask> var target = this._registeredForLateAnimationBindings.data[index]; <mask> <mask> for (var path in target._lateAnimationHolders) { <mask> var holder ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/325c51c9d56d695163e74596d44885292d2a1ee4
src/babylon.scene.ts
if (!originalValue.scaleAndAddToRef) {
<mask> for (var path in target._lateAnimationHolders) { <mask> var holder = target._lateAnimationHolders[path]; <mask> <mask> // Sanity check <mask> if (!holder.animations[0].originalValue.scaleAndAddToRef) { <...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/325c51c9d56d695163e74596d44885292d2a1ee4
src/babylon.scene.ts
let matrixDecomposeMode = Animation.AllowMatrixDecomposeForInterpolation && originalValue.m; // ie. data is matrix
<mask> continue; <mask> } <mask> <mask> let normalizer = 1.0; <mask> let finalValue: any; <mask> <mask> if (holder.totalWeight < 1.0) { <mask> // We need to mix the original value in...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/325c51c9d56d695163e74596d44885292d2a1ee4
src/babylon.scene.ts
// We need to mix the original value in if (matrixDecomposeMode) { finalValue = originalValue.clone(); } else { finalValue = originalValue.scale(1.0 - holder.totalWeight) ...
<mask> let normalizer = 1.0; <mask> let finalValue: any; <mask> <mask> if (holder.totalWeight < 1.0) { <mask> // We need to mix the original value in <mask> let originalValue = holder.animations[0].origina...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/325c51c9d56d695163e74596d44885292d2a1ee4
src/babylon.scene.ts
var runtimeAnimation = holder.animations[animIndex]; var scale = runtimeAnimation.weight / normalizer;
<mask> normalizer = holder.totalWeight; <mask> } <mask> <mask> for (var animIndex = 0; animIndex < holder.animations.length; animIndex++) { <mask> var runtimeAnimation = holder.animations[animIndex]; <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/325c51c9d56d695163e74596d44885292d2a1ee4
src/babylon.scene.ts
if (matrixDecomposeMode) { Matrix.DecomposeLerpToRef(finalValue, runtimeAnimation.currentValue, scale, finalValue); } else { runtimeAnimation.currentValue.scaleAndAddToRef(scale, finalValue); ...
<mask> <mask> for (var animIndex = 0; animIndex < holder.animations.length; animIndex++) { <mask> var runtimeAnimation = holder.animations[animIndex]; <mask> if (finalValue) { <mask> runtimeAnimation.currentValue.s...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/325c51c9d56d695163e74596d44885292d2a1ee4
src/babylon.scene.ts
if (scale !== 1) { if (matrixDecomposeMode) { finalValue = runtimeAnimation.currentValue.clone(); } else { finalValue = runtimeAnimation.currentValue.sc...
<mask> var runtimeAnimation = holder.animations[animIndex]; <mask> if (finalValue) { <mask> runtimeAnimation.currentValue.scaleAndAddToRef(runtimeAnimation.weight / normalizer, finalValue); <mask> } else { <mask...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/325c51c9d56d695163e74596d44885292d2a1ee4
src/babylon.scene.ts
if (!sourceMesh.actionManager.hasSpecificTrigger(ActionManager.OnIntersectionExitTrigger, parameter => { var parameterMesh = parameter instanceof AbstractMesh ? parameter : parameter.mesh; return otherMesh === parameterMesh; ...
<mask> action._executeCurrent(ActionEvent.CreateNew(sourceMesh, undefined, otherMesh)); <mask> } <mask> <mask> //if this is an exit trigger, or no exit trigger exists, remove the id from the intersection in progress array. <ma...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/325c51c9d56d695163e74596d44885292d2a1ee4
src/babylon.scene.ts
"../../src/tools/hdr/babylon.tools.pmremGenerator.js",
<mask> "../../src/Particles/babylon.solidParticleSystem.js", <mask> "../../src/tools/hdr/babylon.tools.cubemaptosphericalpolynomial.js", <mask> "../../src/tools/hdr/babylon.tools.panoramatocubemap.js", <mask> "../../src/tools/hdr/babylon.tools.hdr.js", <mask> "../../src/tools/hdr/baby...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
Tools/Gulp/config.json
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d...
<mask> for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; <mask> function __() { this.constructor = d; } <mask> d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); <mask> }; <mask> var BABYLON; <mask> (function (BABYLON) { <mask> var DirectionalLight = (funct...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.directionalLight.js
<mask> var DirectionalLight = (function (_super) { <mask> __extends(DirectionalLight, _super); <mask> function DirectionalLight(name, direction, scene) { <mask> _super.call(this, name, scene); <mask> this.direction = direction; <mask> this.shadowOrthoScale =...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.directionalLight.js
this.direction = direction;
<mask> this._orthoBottom = Number.MAX_VALUE; <mask> this.position = direction.scale(-1); <mask> } <mask> DirectionalLight.prototype.getAbsolutePosition = function () { <mask> return this.transformedPosition ? this.transformedPosition : this.position; <mask> ...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.directionalLight.js
DirectionalLight.prototype.getTypeID = function () { return 1;
<mask> } <mask> BABYLON.Matrix.TranslationToRef(this.position.x, this.position.y, this.position.z, this._worldMatrix); <mask> return this._worldMatrix; <mask> }; <mask> DirectionalLight.prototype.serialize = function () { <mask> var serializationObje...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.directionalLight.js
__decorate([ BABYLON.serializeAsVector3() ], DirectionalLight.prototype, "position", void 0); __decorate([ BABYLON.serializeAsVector3() ], DirectionalLight.prototype, "direction", void 0); __decorate([ BABYLON.serialize() ], Directional...
<mask> return 1; <mask> }; <mask> return DirectionalLight; <mask> })(BABYLON.Light); <mask> BABYLON.DirectionalLight = DirectionalLight; <mask> })(BABYLON || (BABYLON = {})); </s> Added @serialize to lights Former-commit-id: e47991e93b4625b91251deb10fcb5d14c1d2320b </s> remo...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.directionalLight.js
@serializeAsVector3() public direction: Vector3
<mask> @serializeAsVector3() <mask> public position: Vector3; <mask> <mask> private _transformedDirection: Vector3; <mask> public transformedPosition: Vector3; <mask> private _worldMatrix: Matrix; <mask> </s> Added @serialize to lights Former-commit-id: e47991e93b4625...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.directionalLight.ts
@serialize()
<mask> private _transformedDirection: Vector3; <mask> public transformedPosition: Vector3; <mask> private _worldMatrix: Matrix; <mask> <mask> public shadowOrthoScale = 0.5; <mask> <mask> @serialize() <mask> public autoUpdateExtends = true; </s> Added @serialize...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.directionalLight.ts
@serialize()
<mask> @serialize() <mask> public shadowOrthoScale = 0.5; <mask> <mask> public autoUpdateExtends = true; <mask> <mask> // Cache <mask> private _orthoLeft = Number.MAX_VALUE; </s> Added @serialize to lights Former-commit-id: e47991e93b4625b91251deb10fcb5d14c1d2320b </s...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.directionalLight.ts
constructor(name: string, direction: Vector3, scene: Scene) {
<mask> private _orthoRight = Number.MIN_VALUE; <mask> private _orthoTop = Number.MIN_VALUE; <mask> private _orthoBottom = Number.MAX_VALUE; <mask> <mask> constructor(name: string, public direction: Vector3, scene: Scene) { <mask> super(name, scene); <mask> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.directionalLight.ts
this.direction = direction;
<mask> <mask> this.position = direction.scale(-1); <mask> } <mask> <mask> public getAbsolutePosition(): Vector3 { <mask> return this.transformedPosition ? this.transformedPosition : this.position; </s> Added @serialize to lights Former-commit-id: e47991e93b4625b91251de...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.directionalLight.ts
public getTypeID(): number { return 1;
<mask> <mask> return this._worldMatrix; <mask> } <mask> <mask> public serialize(): any { <mask> var serializationObject = super.serialize(); <mask> serializationObject.type = 1; <mask> serializationObject.position = this.position.asArray(); <mas...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.directionalLight.ts
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d...
<mask> for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; <mask> function __() { this.constructor = d; } <mask> d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); <mask> }; <mask> var BABYLON; <mask> (function (BABYLON) { <mask> var HemisphericLight = (funct...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.hemisphericLight.js
<mask> var HemisphericLight = (function (_super) { <mask> __extends(HemisphericLight, _super); <mask> function HemisphericLight(name, direction, scene) { <mask> _super.call(this, name, scene); <mask> this.direction = direction; <mask> this.groundColor = new ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.hemisphericLight.js
this.direction = direction;
<mask> __extends(HemisphericLight, _super); <mask> function HemisphericLight(name, direction, scene) { <mask> _super.call(this, name, scene); <mask> this.groundColor = new BABYLON.Color3(0.0, 0.0, 0.0); <mask> } <mask> HemisphericLight.prototype.setDirection...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.hemisphericLight.js
HemisphericLight.prototype.getTypeID = function () { return 3;
<mask> this._worldMatrix = BABYLON.Matrix.Identity(); <mask> } <mask> return this._worldMatrix; <mask> }; <mask> HemisphericLight.prototype.serialize = function () { <mask> var serializationObject = _super.prototype.serialize.call(this); <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.hemisphericLight.js
__decorate([ BABYLON.serializeAsColor3() ], HemisphericLight.prototype, "groundColor", void 0); __decorate([ BABYLON.serializeAsVector3() ], HemisphericLight.prototype, "direction", void 0);
<mask> }; <mask> HemisphericLight.prototype.getTypeID = function () { <mask> return 3; <mask> }; <mask> return HemisphericLight; <mask> })(BABYLON.Light); <mask> BABYLON.HemisphericLight = HemisphericLight; <mask> })(BABYLON || (BABYLON = {})); </s> Added @se...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.hemisphericLight.js
@serializeAsVector3() public direction: Vector3
<mask> export class HemisphericLight extends Light { <mask> @serializeAsColor3() <mask> public groundColor = new Color3(0.0, 0.0, 0.0); <mask> <mask> private _worldMatrix: Matrix; <mask> <mask> constructor(name: string, direction: Vector3, scene: Scene) { <mask> ...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.hemisphericLight.ts
constructor(name: string, direction: Vector3, scene: Scene) {
<mask> public groundColor = new Color3(0.0, 0.0, 0.0); <mask> <mask> private _worldMatrix: Matrix; <mask> <mask> constructor(name: string, public direction: Vector3, scene: Scene) { <mask> super(name, scene); <mask> } <mask> <mask> public setDirectionToTar...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.hemisphericLight.ts
this.direction = direction;
<mask> <mask> constructor(name: string, direction: Vector3, scene: Scene) { <mask> super(name, scene); <mask> } <mask> <mask> public setDirectionToTarget(target: Vector3): Vector3 { <mask> this.direction = Vector3.Normalize(target.subtract(Vector3.Zero())); <mas...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.hemisphericLight.ts
public getTypeID(): number { return 3;
<mask> <mask> return this._worldMatrix; <mask> } <mask> <mask> public serialize(): any { <mask> var serializationObject = super.serialize(); <mask> serializationObject.type = 3; <mask> serializationObject.direction = this.direction.asArray(); <m...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.hemisphericLight.ts
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d...
<mask> function __() { this.constructor = d; } <mask> d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); <mask> }; <mask> var BABYLON; <mask> (function (BABYLON) { <mask> var Light = (function (_super) { <mask> __extends(Light, _super); </s> Added @serializ...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.js
Light.prototype.getTypeID = function () { return 0; }; Light.prototype.clone = function (name) { return BABYLON.SerializationHelper.Clone(Light.GetConstructorFromName(this.getTypeID(), name, this.getScene()), this); };
<mask> this.getScene().removeLight(this); <mask> }; <mask> Light.prototype.serialize = function () { <mask> var serializationObject = BABYLON.SerializationHelper.Serialize(this); <mask> // Type <mask> serializationObject.type = this.getTypeID(); <ma...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.js
var serializationObject = BABYLON.SerializationHelper.Serialize(this); // Type serializationObject.type = this.getTypeID();
<mask> // Remove from scene <mask> this.getScene().removeLight(this); <mask> }; <mask> Light.prototype.serialize = function () { <mask> var serializationObject = {}; <mask> serializationObject.name = this.name; <mask> serializationObject...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.js
<mask> // Parent <mask> if (this.parent) { <mask> serializationObject.parentId = this.parent.id; <mask> } <mask> serializationObject.range = this.range; <mask> serializationObject.radius = this.radius; <mask> serializationObj...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.js
Light.GetConstructorFromName = function (type, name, scene) { switch (type) {
<mask> serializationObject.diffuse = this.diffuse.asArray(); <mask> serializationObject.specular = this.specular.asArray(); <mask> return serializationObject; <mask> }; <mask> Light.Parse = function (parsedLight, scene) { <mask> var light; <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.js
return function () { return new BABYLON.PointLight(name, BABYLON.Vector3.Zero(), scene); };
<mask> Light.Parse = function (parsedLight, scene) { <mask> var light; <mask> switch (parsedLight.type) { <mask> case 0: <mask> light = new BABYLON.PointLight(parsedLight.name, BABYLON.Vector3.FromArray(parsedLight.position), scene); <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.js
return function () { return new BABYLON.DirectionalLight(name, BABYLON.Vector3.Zero(), scene); };
<mask> case 0: <mask> light = new BABYLON.PointLight(parsedLight.name, BABYLON.Vector3.FromArray(parsedLight.position), scene); <mask> break; <mask> case 1: <mask> light = new BABYLON.DirectionalLight(parsedLight.name, BABY...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.js
return function () { return new BABYLON.SpotLight(name, BABYLON.Vector3.Zero(), BABYLON.Vector3.Zero(), 0, 0, scene); };
<mask> light = new BABYLON.DirectionalLight(parsedLight.name, BABYLON.Vector3.FromArray(parsedLight.direction), scene); <mask> light.position = BABYLON.Vector3.FromArray(parsedLight.position); <mask> break; <mask> case 2: <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.js
return function () { return new BABYLON.HemisphericLight(name, BABYLON.Vector3.Zero(), scene); };
<mask> case 2: <mask> light = new BABYLON.SpotLight(parsedLight.name, BABYLON.Vector3.FromArray(parsedLight.position), BABYLON.Vector3.FromArray(parsedLight.direction), parsedLight.angle, parsedLight.exponent, scene); <mask> break; <mask> case ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.js
}; Light.Parse = function (parsedLight, scene) { var light = BABYLON.SerializationHelper.Parse(Light.GetConstructorFromName(parsedLight.type, parsedLight.name, scene), parsedLight, scene); // Inclusion / exclusions
<mask> } <mask> if (parsedLight.radius) { <mask> light.radius = parsedLight.radius; <mask> } <mask> light.diffuse = BABYLON.Color3.FromArray(parsedLight.diffuse); <mask> light.specular = BABYLON.Color3.FromArray(parsedLight.specular); <m...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.js
if (parsedLight.includedOnlyMeshesIds) { light._includedOnlyMeshesIds = parsedLight.includedOnlyMeshesIds; }
<mask> light._excludedMeshesIds = parsedLight.excludedMeshesIds; <mask> } <mask> // Parent <mask> if (parsedLight.parentId) { <mask> light._waitingParentId = parsedLight.parentId; <mask> } <mask> // Animations <mask> ...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.js
<mask> // Parent <mask> if (parsedLight.parentId) { <mask> light._waitingParentId = parsedLight.parentId; <mask> } <mask> if (parsedLight.includedOnlyMeshesIds) { <mask> light._includedOnlyMeshesIds = parsedLight.includedOnlyMeshesIds...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.js
@serializeAsColor3()
<mask> <mask> export class Light extends Node { <mask> public diffuse = new Color3(1.0, 1.0, 1.0); <mask> <mask> @serializeAsColor3() <mask> public specular = new Color3(1.0, 1.0, 1.0); </s> Added @serialize to lights Former-commit-id: e47991e93b4625b91251deb10fcb5d14c1d2320b </s>...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.ts
@serializeAsColor3()
<mask> export class Light extends Node { <mask> @serializeAsColor3() <mask> public diffuse = new Color3(1.0, 1.0, 1.0); <mask> public specular = new Color3(1.0, 1.0, 1.0); <mask> <mask> @serialize() <mask> public intensity = 1.0; <mask> <mask> @serialize() ...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.ts
@serialize()
<mask> <mask> @serializeAsColor3() <mask> public specular = new Color3(1.0, 1.0, 1.0); <mask> public intensity = 1.0; <mask> <mask> @serialize() <mask> public range = Number.MAX_VALUE; <mask> </s> Added @serialize to lights Former-commit-id: e47991e93b4625b91251deb1...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.ts
@serialize()
<mask> <mask> @serialize() <mask> public intensity = 1.0; <mask> public range = Number.MAX_VALUE; <mask> <mask> @serialize() <mask> public includeOnlyWithLayerMask = 0; <mask> <mask> public includedOnlyMeshes = new Array<AbstractMesh>(); </s> Added @serialize...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.ts
@serialize()
<mask> public intensity = 1.0; <mask> <mask> @serialize() <mask> public range = Number.MAX_VALUE; <mask> public includeOnlyWithLayerMask = 0; <mask> <mask> public includedOnlyMeshes = new Array<AbstractMesh>(); <mask> public excludedMeshes = new Array<AbstractMe...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.ts
@serialize()
<mask> public excludeWithLayerMask = 0; <mask> <mask> // PBR Properties. <mask> public radius = 0.00001; <mask> <mask> public _shadowGenerator: ShadowGenerator; <mask> private _parentedWorldMatrix: Matrix; <mask> public _excludedMeshesIds = new Array<string>(); ...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.ts
public getTypeID(): number { return 0; } public clone(name: string): Light { return SerializationHelper.Clone(Light.GetConstructorFromName(this.getTypeID(), name, this.getScene()), this); }
<mask> } <mask> <mask> public serialize(): any { <mask> var serializationObject = SerializationHelper.Serialize(this); <mask> <mask> // Type </s> Added @serialize to lights Former-commit-id: e47991e93b4625b91251deb10fcb5d14c1d2320b </s> remove var serializa...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.ts
var serializationObject = SerializationHelper.Serialize(this); // Type serializationObject.type = this.getTypeID();
<mask> this.getScene().removeLight(this); <mask> } <mask> <mask> public serialize(): any { <mask> var serializationObject: any = {}; <mask> serializationObject.name = this.name; <mask> serializationObject.id = this.id; <mask> serializa...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.ts
<mask> serializationObject.name = this.name; <mask> serializationObject.id = this.id; <mask> serializationObject.tags = Tags.GetTags(this); <mask> <mask> if (this.intensity) { <mask> serializationObject.intensity = this.intensity; <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.ts
<mask> if (this.parent) { <mask> serializationObject.parentId = this.parent.id; <mask> } <mask> <mask> serializationObject.range = this.range; <mask> serializationObject.radius = this.radius; <mask> <mask> serializationObject.diffuse ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.ts
static GetConstructorFromName(type: number, name: string, scene: Scene): () => Light { switch (type) {
<mask> <mask> return serializationObject; <mask> } <mask> <mask> public static Parse(parsedLight: any, scene: Scene): Light { <mask> var light; <mask> <mask> switch (parsedLight.type) { <mask> case 0: <mask> light = new...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.ts
return () => new PointLight(name, Vector3.Zero(), scene);
<mask> var light; <mask> <mask> switch (parsedLight.type) { <mask> case 0: <mask> light = new PointLight(parsedLight.name, Vector3.FromArray(parsedLight.position), scene); <mask> break; <mask> case 1: <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.ts
return () => new DirectionalLight(name, Vector3.Zero(), scene);
<mask> case 0: <mask> light = new PointLight(parsedLight.name, Vector3.FromArray(parsedLight.position), scene); <mask> break; <mask> case 1: <mask> light = new DirectionalLight(parsedLight.name, Vector3.FromArray(parsedLigh...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.ts
return () => new SpotLight(name, Vector3.Zero(), Vector3.Zero(), 0, 0, scene);
<mask> light = new DirectionalLight(parsedLight.name, Vector3.FromArray(parsedLight.direction), scene); <mask> light.position = Vector3.FromArray(parsedLight.position); <mask> break; <mask> case 2: <mask> light = new Sp...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.ts
return () => new HemisphericLight(name, Vector3.Zero(), scene);
<mask> case 2: <mask> light = new SpotLight(parsedLight.name, Vector3.FromArray(parsedLight.position), Vector3.FromArray(parsedLight.direction), parsedLight.angle, parsedLight.exponent, scene); <mask> break; <mask> case 3: <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", ...
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.ts
}
<mask> return () => new SpotLight(name, Vector3.Zero(), Vector3.Zero(), 0, 0, scene); <mask> case 3: <mask> return () => new HemisphericLight(name, Vector3.Zero(), scene); <mask> } <mask> <mask> public static Parse(parsedLight: any, scen...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.ts
public static Parse(parsedLight: any, scene: Scene): Light { var light = SerializationHelper.Parse(Light.GetConstructorFromName(parsedLight.type, parsedLight.name, scene), parsedLight, scene);
<mask> if (parsedLight.radius) { <mask> light.radius = parsedLight.radius; <mask> } <mask> <mask> light.diffuse = Color3.FromArray(parsedLight.diffuse); <mask> light.specular = Color3.FromArray(parsedLight.specular); <mask> <mask> if ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.ts
// Inclusion / exclusions
<mask> var light = SerializationHelper.Parse(Light.GetConstructorFromName(parsedLight.type, parsedLight.name, scene), parsedLight, scene); <mask> <mask> if (parsedLight.excludedMeshesIds) { <mask> light._excludedMeshesIds = parsedLight.excludedMeshesIds; <mask> ...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.ts
if (parsedLight.includedOnlyMeshesIds) { light._includedOnlyMeshesIds = parsedLight.includedOnlyMeshesIds; }
<mask> } <mask> <mask> // Parent <mask> if (parsedLight.parentId) { <mask> light._waitingParentId = parsedLight.parentId; <mask> } </s> Added @serialize to lights Former-commit-id: e47991e93b4625b91251deb10fcb5d14c1d2320b </s> remove ...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.ts
<mask> if (parsedLight.parentId) { <mask> light._waitingParentId = parsedLight.parentId; <mask> } <mask> <mask> if (parsedLight.includedOnlyMeshesIds) { <mask> light._includedOnlyMeshesIds = parsedLight.includedOnlyMeshesIds; <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.light.ts
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d...
<mask> for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; <mask> function __() { this.constructor = d; } <mask> d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); <mask> }; <mask> var BABYLON; <mask> (function (BABYLON) { <mask> var PointLight = (function (_...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.pointLight.js
PointLight.prototype.getTypeID = function () { return 0;
<mask> } <mask> BABYLON.Matrix.TranslationToRef(this.position.x, this.position.y, this.position.z, this._worldMatrix); <mask> return this._worldMatrix; <mask> }; <mask> PointLight.prototype.serialize = function () { <mask> var serializationObject = _...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.pointLight.js
__decorate([ BABYLON.serializeAsVector3() ], PointLight.prototype, "position", void 0);
<mask> return 0; <mask> }; <mask> return PointLight; <mask> })(BABYLON.Light); <mask> BABYLON.PointLight = PointLight; <mask> })(BABYLON || (BABYLON = {})); </s> Added @serialize to lights Former-commit-id: e47991e93b4625b91251deb10fcb5d14c1d2320b </s> remove PointLi...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.pointLight.js
@serializeAsVector3() public position: Vector3; constructor(name: string, position: Vector3, scene: Scene) {
<mask> export class PointLight extends Light implements IShadowLight { <mask> private _worldMatrix: Matrix; <mask> public transformedPosition: Vector3; <mask> <mask> constructor(name: string, public position: Vector3, scene: Scene) { <mask> super(name, scene); <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.pointLight.ts
this.position = position;
<mask> public position: Vector3; <mask> <mask> constructor(name: string, position: Vector3, scene: Scene) { <mask> super(name, scene); <mask> } <mask> <mask> public getAbsolutePosition(): Vector3 { <mask> return this.transformedPosition ? this.transforme...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.pointLight.ts
public getTypeID(): number { return 0;
<mask> <mask> return this._worldMatrix; <mask> } <mask> <mask> public serialize(): any { <mask> var serializationObject = super.serialize(); <mask> <mask> serializationObject.type = 0; <mask> serializationObject.position = this.position.asArray...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.pointLight.ts
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d...
<mask> d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); <mask> }; <mask> var BABYLON; <mask> (function (BABYLON) { <mask> var SpotLight = (function (_super) { <mask> __extends(SpotLight, _super); <mask> function SpotLight(name, position, direction, ang...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.spotLight.js
SpotLight.prototype.getTypeID = function () { return 2;
<mask> } <mask> BABYLON.Matrix.TranslationToRef(this.position.x, this.position.y, this.position.z, this._worldMatrix); <mask> return this._worldMatrix; <mask> }; <mask> SpotLight.prototype.serialize = function () { <mask> var serializationObject = _s...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.spotLight.js
__decorate([ BABYLON.serializeAsVector3() ], SpotLight.prototype, "position", void 0); __decorate([ BABYLON.serializeAsVector3() ], SpotLight.prototype, "direction", void 0); __decorate([ BABYLON.serialize() ], SpotLight.prototype, "ang...
<mask> return 2; <mask> }; <mask> return SpotLight; <mask> })(BABYLON.Light); <mask> BABYLON.SpotLight = SpotLight; <mask> })(BABYLON || (BABYLON = {})); </s> Added @serialize to lights Former-commit-id: e47991e93b4625b91251deb10fcb5d14c1d2320b </s> remove SpotLight....
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.spotLight.js
constructor(name: string, position: Vector3, direction: Vector3, angle: number, exponent: number, scene: Scene) {
<mask> <mask> private _transformedDirection: Vector3; <mask> private _worldMatrix: Matrix; <mask> <mask> constructor(name: string, public position: Vector3, public direction: Vector3, public angle: number, public exponent: number, scene: Scene) { <mask> super(name, scene); <...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.spotLight.ts
this.position = position; this.direction = direction; this.angle = angle; this.exponent = exponent;
<mask> <mask> constructor(name: string, position: Vector3, direction: Vector3, angle: number, exponent: number, scene: Scene) { <mask> super(name, scene); <mask> } <mask> <mask> public getAbsolutePosition(): Vector3 { <mask> return this.transformedPosition ? this...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.spotLight.ts
public getTypeID(): number { return 2;
<mask> <mask> return this._worldMatrix; <mask> } <mask> <mask> public serialize(): any { <mask> var serializationObject = super.serialize(); <mask> <mask> serializationObject.type = 2; <mask> serializationObject.position = this.position.asArray...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Lights/babylon.spotLight.ts
<mask> function serializeAsFresnelParameters(sourceName) { <mask> return generateSerializableMember(3, sourceName); // fresnel parameters member <mask> } <mask> BABYLON.serializeAsFresnelParameters = serializeAsFresnelParameters; <mask> function serializeAsVector2(sourceName) { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Tools/babylon.decorators.js
return generateSerializableMember(4, sourceName); // vector3 member
<mask> return generateSerializableMember(4, sourceName); // vector2 member <mask> } <mask> BABYLON.serializeAsVector2 = serializeAsVector2; <mask> function serializeAsVector3(sourceName) { <mask> return generateSerializableMember(5, sourceName); // vector3 member <mask> } <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Tools/babylon.decorators.js
return generateSerializableMember(5, sourceName); // mesh reference member
<mask> return generateSerializableMember(5, sourceName); // vector3 member <mask> } <mask> BABYLON.serializeAsVector3 = serializeAsVector3; <mask> function serializeAsMeshReference(sourceName) { <mask> return generateSerializableMember(6, sourceName); // mesh reference member <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Tools/babylon.decorators.js
<mask> case 4: <mask> serializationObject[targetPropertyName] = sourceProperty.asArray(); <mask> break; <mask> case 5: <mask> serializationObject[targetPropertyName] = sourceProperty....
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Tools/babylon.decorators.js
<mask> case 3: <mask> destination[property] = BABYLON.FresnelParameters.Parse(sourceProperty); <mask> break; <mask> case 4: <mask> destination[property] = BABYLON.Vector2.FromArray(so...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Tools/babylon.decorators.js
case 5:
<mask> break; <mask> case 5: <mask> destination[property] = BABYLON.Vector3.FromArray(sourceProperty); <mask> break; <mask> case 6: <mask> destination[pro...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9
src/Tools/babylon.decorators.js