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
float depth = vPosition.z / vPosition.w; float moment1 = depth;
<mask> discard; <mask> #endif <mask> <mask> #ifdef VSM <mask> float moment1 = gl_FragCoord.z; <mask> float moment2 = moment1 * moment1; <mask> gl_FragColor = vec4(packHalf(moment1), packHalf(moment2)); <mask> #else <mask> gl_FragColor = pack(vPosition.z / vPosition.w); <mask> #endif </s> New option fo...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1a4e89c582bdbb85b7af0679c0273c8d0f7cd243
Babylon/Shaders/shadowMap.fragment.fx
<mask> #ifdef BONES <mask> uniform mat4 mBones[BonesPerMesh]; <mask> #endif <mask> <mask> #ifndef VSM <mask> varying vec4 vPosition; <mask> #endif <mask> <mask> #ifdef ALPHATEST <mask> varying vec2 vUV; </s> New option for soft shadows. Former-commit-id: db3708b8411fcf3dfcd45526de791ac5d918765e </s> remo...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1a4e89c582bdbb85b7af0679c0273c8d0f7cd243
Babylon/Shaders/shadowMap.vertex.fx
<mask> #endif <mask> <mask> #ifndef VSM <mask> varying vec4 vPosition; <mask> #endif <mask> <mask> #ifdef ALPHATEST <mask> varying vec2 vUV; <mask> uniform mat4 diffuseMatrix; <mask> #ifdef UV1 </s> New option for soft shadows. Former-commit-id: db3708b8411fcf3dfcd45526de791ac5d918765e </s> remove #ifnde...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1a4e89c582bdbb85b7af0679c0273c8d0f7cd243
Babylon/Shaders/shadowMap.vertex.fx
<mask> mat4 m3 = mBones[int(matricesIndices.w)] * matricesWeights.w; <mask> finalWorld = finalWorld * (m0 + m1 + m2 + m3); <mask> #endif <mask> <mask> #ifndef VSM <mask> vPosition = viewProjection * finalWorld * vec4(position, 1.0); <mask> #endif <mask> gl_Position = viewProjection * finalWorld * vec4(posi...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1a4e89c582bdbb85b7af0679c0273c8d0f7cd243
Babylon/Shaders/shadowMap.vertex.fx
gl_Position = vPosition;
<mask> #endif <mask> <mask> #ifndef VSM <mask> vPosition = viewProjection * finalWorld * vec4(position, 1.0); <mask> #endif <mask> gl_Position = viewProjection * finalWorld * vec4(position, 1.0); <mask> <mask> #ifdef ALPHATEST <mask> #ifdef UV1 <mask> vUV = vec2(diffuseMatrix * vec4(uv, 1.0, 0.0)); <mas...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1a4e89c582bdbb85b7af0679c0273c8d0f7cd243
Babylon/Shaders/shadowMap.vertex.fx
SpotLight.prototype.setShadowProjectionMatrix = function (matrix, viewMatrix, renderList) {
<mask> } <mask> SpotLight.prototype.getAbsolutePosition = function () { <mask> return this.transformedPosition ? this.transformedPosition : this.position; <mask> }; <mask> SpotLight.prototype.setShadowProjectionMatrix = function (matrix, viewMatrix, renderList, useVSM) {...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1a4e89c582bdbb85b7af0679c0273c8d0f7cd243
babylon.2.1-alpha.debug.js
<mask> SpotLight.prototype.setShadowProjectionMatrix = function (matrix, viewMatrix, renderList, useVSM) { <mask> var activeCamera = this.getScene().activeCamera; <mask> BABYLON.Matrix.PerspectiveFovLHToRef(this.angle, 1.0, activeCamera.minZ, activeCamera.maxZ, matrix); <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1a4e89c582bdbb85b7af0679c0273c8d0f7cd243
babylon.2.1-alpha.debug.js
this.shadowOrthoScale = 0.1;
<mask> __extends(DirectionalLight, _super); <mask> function DirectionalLight(name, direction, scene) { <mask> _super.call(this, name, scene); <mask> this.direction = direction; <mask> this.shadowOrthoScale = 1.1; <mask> this.shadowOrthoDepthScale = 3...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1a4e89c582bdbb85b7af0679c0273c8d0f7cd243
babylon.2.1-alpha.debug.js
DirectionalLight.prototype.setShadowProjectionMatrix = function (matrix, viewMatrix, renderList) {
<mask> DirectionalLight.prototype.setDirectionToTarget = function (target) { <mask> this.direction = BABYLON.Vector3.Normalize(target.subtract(this.position)); <mask> return this.direction; <mask> }; <mask> DirectionalLight.prototype.setShadowProjectionMatrix = funct...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1a4e89c582bdbb85b7af0679c0273c8d0f7cd243
babylon.2.1-alpha.debug.js
<mask> var orthoLeft = Number.MAX_VALUE; <mask> var orthoRight = Number.MIN_VALUE; <mask> var orthoTop = Number.MIN_VALUE; <mask> var orthoBottom = Number.MAX_VALUE; <mask> var orthoNear = Number.MAX_VALUE; <mask> var orthoFar = Number.MIN_VA...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1a4e89c582bdbb85b7af0679c0273c8d0f7cd243
babylon.2.1-alpha.debug.js
<mask> if (tempVector3.x > orthoRight) <mask> orthoRight = tempVector3.x; <mask> if (tempVector3.y > orthoTop) <mask> orthoTop = tempVector3.y; <mask> if (tempVector3.z < orthoNear) <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1a4e89c582bdbb85b7af0679c0273c8d0f7cd243
babylon.2.1-alpha.debug.js
var xOffset = orthoRight - orthoLeft; var yOffset = orthoTop - orthoBottom; BABYLON.Matrix.OrthoOffCenterLHToRef(orthoLeft - xOffset * this.shadowOrthoScale, orthoRight + xOffset * this.shadowOrthoScale, orthoBottom - yOffset * this.shadowOrthoScale, orthoTop + yOffset * this.shadowO...
<mask> if (tempVector3.z > orthoFar) <mask> orthoFar = tempVector3.z; <mask> } <mask> } <mask> var orthoWidth = Math.max(Math.abs(orthoRight), Math.abs(orthoLeft)) * this.shadowOrthoScale; <mask> var orthoHeight = Math...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1a4e89c582bdbb85b7af0679c0273c8d0f7cd243
babylon.2.1-alpha.debug.js
this.blurScale = 2; this._blurBoxOffset = 0;
<mask> function ShadowGenerator(mapSize, light) { <mask> var _this = this; <mask> // Members <mask> this.filter = ShadowGenerator.FILTER_NONE; <mask> this.blurSize = 2; <mask> this._darkness = 0; <mask> this._bias = 0.0001; <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1a4e89c582bdbb85b7af0679c0273c8d0f7cd243
babylon.2.1-alpha.debug.js
this._bias = 0.00005;
<mask> // Members <mask> this.filter = ShadowGenerator.FILTER_NONE; <mask> this.blurSize = 2; <mask> this._darkness = 0; <mask> this._bias = 0.0001; <mask> this._transparencyShadow = false; <mask> this._viewMatrix = BABYLON.Matri...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1a4e89c582bdbb85b7af0679c0273c8d0f7cd243
babylon.2.1-alpha.debug.js
this._mapSize = mapSize;
<mask> this._light = light; <mask> this._scene = light.getScene(); <mask> light._shadowGenerator = this; <mask> // Render target <mask> this._shadowMap = new BABYLON.RenderTargetTexture(light.name + "_shadowMap", mapSize, this._scene, false); <mask> ...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1a4e89c582bdbb85b7af0679c0273c8d0f7cd243
babylon.2.1-alpha.debug.js
if (!_this.useBlurVarianceShadowMap) {
<mask> this._shadowMap.wrapU = BABYLON.Texture.CLAMP_ADDRESSMODE; <mask> this._shadowMap.wrapV = BABYLON.Texture.CLAMP_ADDRESSMODE; <mask> this._shadowMap.renderParticles = false; <mask> this._shadowMap.onAfterUnbind = function () { <mask> if (_this.f...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1a4e89c582bdbb85b7af0679c0273c8d0f7cd243
babylon.2.1-alpha.debug.js
_this._downSamplePostprocess = new BABYLON.PassPostProcess("downScale", 1.0 / _this.blurScale, null, BABYLON.Texture.NEAREST_SAMPLINGMODE, _this._scene.getEngine());
<mask> if (!_this._shadowMap2) { <mask> _this._shadowMap2 = new BABYLON.RenderTargetTexture(light.name + "_shadowMap", mapSize, _this._scene, false); <mask> _this._shadowMap2.wrapU = BABYLON.Texture.CLAMP_ADDRESSMODE; <mask> _this._shadowMa...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1a4e89c582bdbb85b7af0679c0273c8d0f7cd243
babylon.2.1-alpha.debug.js
_this.blurBoxOffset = 1;
<mask> _this._downSamplePostprocess = new BABYLON.PassPostProcess("downScale", 1.0 / _this.blurSize, null, BABYLON.Texture.NEAREST_SAMPLINGMODE, _this._scene.getEngine()); <mask> _this._downSamplePostprocess.onApply = function (effect) { <mask> effect.s...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1a4e89c582bdbb85b7af0679c0273c8d0f7cd243
babylon.2.1-alpha.debug.js
this._shadowMap.onClear = function (engine) { if (_this.useBlurVarianceShadowMap || _this.useVarianceShadowMap) { engine.clear(new BABYLON.Color4(0, 0, 0, 0), true, true); } else { engine.clear(new BABYLON.Color4(1.0, 1....
<mask> } <mask> } <mask> }; <mask> } <mask> Object.defineProperty(ShadowGenerator, "FILTER_NONE", { <mask> // Static <mask> get: function () { <mask> return ShadowGenerator._FILTER_NONE; </s> New option for ...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1a4e89c582bdbb85b7af0679c0273c8d0f7cd243
babylon.2.1-alpha.debug.js
return this.filter === ShadowGenerator.FILTER_POISSONSAMPLING || (!this._light.supportsVSM() && (this.filter === ShadowGenerator.FILTER_VARIANCESHADOWMAP || this.filter === ShadowGenerator.FILTER_BLURVARIANCESHADOWMAP));
<mask> configurable: true <mask> }); <mask> Object.defineProperty(ShadowGenerator.prototype, "usePoissonSampling", { <mask> get: function () { <mask> return this.filter === ShadowGenerator.FILTER_POISSONSAMPLING; <mask> }, <mask> set...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1a4e89c582bdbb85b7af0679c0273c8d0f7cd243
babylon.2.1-alpha.debug.js
this._light.setShadowProjectionMatrix(this._projectionMatrix, this._viewMatrix, this.getShadowMap().renderList);
<mask> if (this._light.needRefreshPerFrame() || !this._cachedPosition || !this._cachedDirection || !lightPosition.equals(this._cachedPosition) || !lightDirection.equals(this._cachedDirection)) { <mask> this._cachedPosition = lightPosition.clone(); <mask> this._cachedDirect...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1a4e89c582bdbb85b7af0679c0273c8d0f7cd243
babylon.2.1-alpha.debug.js
ShadowGenerator.prototype._packHalf = function (depth) { var scale = depth * 255.0; var fract = scale - Math.floor(scale); return new BABYLON.Vector2(depth - fract / 255.0, fract); };
<mask> ShadowGenerator.prototype.setTransparencyShadow = function (hasShadow) { <mask> this._transparencyShadow = hasShadow; <mask> }; <mask> ShadowGenerator.prototype.dispose = function () { <mask> this._shadowMap.dispose(); <mask> if (this._shadowMap2)...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1a4e89c582bdbb85b7af0679c0273c8d0f7cd243
babylon.2.1-alpha.debug.js
if (this.onClear) { this.onClear(engine); } else { engine.clear(scene.clearColor, true, true); }
<mask> if (this.onBeforeRender) { <mask> this.onBeforeRender(); <mask> } <mask> // Clear <mask> engine.clear(scene.clearColor, true, true); <mask> if (!this._doNotChangeAspectRatio) { <mask> scene.updateTransformMatrix(tr...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1a4e89c582bdbb85b7af0679c0273c8d0f7cd243
babylon.2.1-alpha.debug.js
defaultPixelShader:"#ifdef GL_ES\nprecision highp float;\n#endif\n\n#define MAP_EXPLICIT 0.\n#define MAP_SPHERICAL 1.\n#define MAP_PLANAR 2.\n#define MAP_CUBIC 3.\n#define MAP_PROJECTION 4.\n#define MAP_SKYBOX 5.\n\n// Constants\nuniform vec3 vEyePosition;\nuniform vec3 vAmbientColor;\nuniform vec4 vDiffuseColor;\nu...
<mask> cloudPixelShader:"#ifdef GL_ES\nprecision highp float;\n#endif\n\nvarying vec2 vUV;\n\nuniform vec3 skyColor;\nuniform vec3 cloudColor;\n\nfloat rand(vec2 n) {\n return fract(cos(dot(n, vec2(12.9898, 4.1414))) * 43758.5453);\n}\n\nfloat noise(vec2 n) {\n const vec2 d = vec2(0.0, 1.0);\n vec2 b = floor(n), f = s...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1a4e89c582bdbb85b7af0679c0273c8d0f7cd243
babylon.2.1-alpha.debug.js
depthBoxBlurPixelShader:"#ifdef GL_ES\nprecision highp float;\n#endif\n\n// Samplers\nvarying vec2 vUV;\nuniform sampler2D textureSampler;\n\n// Parameters\nuniform vec2 screenSize;\n\nvoid main(void)\n{\n vec4 colorDepth = vec4(0.0);\n\n for (int x = -OFFSET; x <= OFFSET; x++)\n for (int y = -OFFSET; y <= OFFSET; y++...
<mask> defaultPixelShader:"#ifdef GL_ES\nprecision highp float;\n#endif\n\n#define MAP_EXPLICIT 0.\n#define MAP_SPHERICAL 1.\n#define MAP_PLANAR 2.\n#define MAP_CUBIC 3.\n#define MAP_PROJECTION 4.\n#define MAP_SKYBOX 5.\n\n// Constants\nuniform vec3 vEyePosition;\nuniform vec3 vAmbientColor;\nuniform vec4 vDiffuseC...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1a4e89c582bdbb85b7af0679c0273c8d0f7cd243
babylon.2.1-alpha.debug.js
shadowMapPixelShader:"#ifdef GL_ES\nprecision highp float;\n#endif\n\nvec4 pack(float depth)\n{\n const vec4 bit_shift = vec4(255.0 * 255.0 * 255.0, 255.0 * 255.0, 255.0, 1.0);\n const vec4 bit_mask = vec4(0.0, 1.0 / 255.0, 1.0 / 255.0, 1.0 / 255.0);\n\n vec4 res = fract(depth * bit_shift);\n res -= res.xxyz * bit_mask...
<mask> postprocessVertexShader:"#ifdef GL_ES\nprecision highp float;\n#endif\n\n// Attributes\nattribute vec2 position;\n\n// Output\nvarying vec2 vUV;\n\nconst vec2 madd = vec2(0.5, 0.5);\n\nvoid main(void) { \n\n vUV = position * madd + madd;\n gl_Position = vec4(position, 0.0, 1.0);\n}", <mask> proceduralVertexSha...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1a4e89c582bdbb85b7af0679c0273c8d0f7cd243
babylon.2.1-alpha.debug.js
this._effect.setFloat3("shadowsInfo" + lightIndex, shadowGenerator.getDarkness(), shadowGenerator.getShadowMap().getSize().width, shadowGenerator.getBias());
<mask> var shadowGenerator = light.getShadowGenerator(); <mask> if (mesh.receiveShadows && shadowGenerator) { <mask> this._effect.setMatrix("lightMatrix" + lightIndex, shadowGenerator.getTransformMatrix()); <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1a4e89c582bdbb85b7af0679c0273c8d0f7cd243
babylon.2.1-alpha.debug.js
else if (parsedShadowGenerator.useVarianceShadowMap) { shadowGenerator.useVarianceShadowMap = true; } else if (parsedShadowGenerator.useBlurVarianceShadowMap) { shadowGenerator.useBlurVarianceShadowMap = true; } if (parsedShadow...
<mask> } <mask> if (parsedShadowGenerator.usePoissonSampling) { <mask> shadowGenerator.usePoissonSampling = true; <mask> } <mask> else { <mask> shadowGenerator.useVarianceShadowMap = parsedShadowGenerator.useVarianceShadowMap; <mask>...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1a4e89c582bdbb85b7af0679c0273c8d0f7cd243
babylon.2.1-alpha.debug.js
return this._createKeyboardEvent(inputIndex, currentState, deviceInputSystem, elementToAttachTo);
<mask> */ <mask> public static CreateDeviceEvent(deviceType: DeviceType, deviceSlot: number, inputIndex: number, currentState: Nullable<number>, deviceInputSystem: IDeviceInputSystem, elementToAttachTo?: any): IEvent { <mask> switch (deviceType) { <mask> case DeviceType.Keyboard: <mask...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1ac95501a211643c2d11ce313192f475380e4156
src/DeviceInput/Helpers/eventFactory.ts
return this._createWheelEvent(deviceType, deviceSlot, inputIndex, currentState, deviceInputSystem, elementToAttachTo);
<mask> case DeviceType.Keyboard: <mask> return this._createKeyboardEvent(inputIndex, currentState, elementToAttachTo, deviceInputSystem); <mask> case DeviceType.Mouse: <mask> if (inputIndex === PointerInput.MouseWheelX || inputIndex === PointerInput.MouseWheel...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1ac95501a211643c2d11ce313192f475380e4156
src/DeviceInput/Helpers/eventFactory.ts
return this._createPointerEvent(deviceType, deviceSlot, inputIndex, currentState, deviceInputSystem, elementToAttachTo);
<mask> if (inputIndex === PointerInput.MouseWheelX || inputIndex === PointerInput.MouseWheelY || inputIndex === PointerInput.MouseWheelZ) { <mask> return this._createWheelEvent(deviceType, deviceSlot, inputIndex, currentState, elementToAttachTo, deviceInputSystem); <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1ac95501a211643c2d11ce313192f475380e4156
src/DeviceInput/Helpers/eventFactory.ts
const evt = this._createMouseEvent(deviceType, deviceSlot, inputIndex, currentState, deviceInputSystem, elementToAttachTo);
<mask> * @param elementToAttachTo HTMLElement to reference as target for inputs <mask> * @returns IEvent object (Pointer) <mask> */ <mask> private static _createPointerEvent(deviceType: DeviceType, deviceSlot: number, inputIndex: number, currentState: Nullable<number>, deviceInputSystem: IDeviceI...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1ac95501a211643c2d11ce313192f475380e4156
src/DeviceInput/Helpers/eventFactory.ts
const evt = this._createMouseEvent(deviceType, deviceSlot, inputIndex, currentState, deviceInputSystem, elementToAttachTo);
<mask> * @param elementToAttachTo HTMLElement to reference as target for inputs <mask> * @returns IEvent object (Wheel) <mask> */ <mask> private static _createWheelEvent(deviceType: DeviceType, deviceSlot: number, inputIndex: number, currentState: Nullable<number>, deviceInputSystem: IDeviceInput...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1ac95501a211643c2d11ce313192f475380e4156
src/DeviceInput/Helpers/eventFactory.ts
import { Logger } from "../Misc/logger";
<mask> import { WebRequest } from '../Misc/webRequest'; <mask> import { NativeShaderProcessor } from './Native/nativeShaderProcessor'; <mask> <mask> interface INativeEngine { <mask> requestAnimationFrame(callback: () => void): void; <mask> <mask> createVertexArray(): any; </s> First version of render ...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1ae430fa84295886a898fa4abd6fca0c0d4a9788
src/Engines/nativeEngine.ts
createFrameBuffer(texture: WebGLTexture, width: number, height: number, format: number, samplingMode: number, generateStencilBuffer: boolean, generateDepthBuffer: boolean, generateMipMaps: boolean): WebGLFramebuffer; bindFrameBuffer(frameBuffer: WebGLFramebuffer): void; unbindFrameBuffer(frameBuffer: WebG...
<mask> setTexture(uniform: WebGLUniformLocation, texture: Nullable<WebGLTexture>): void; <mask> deleteTexture(texture: Nullable<WebGLTexture>): void; <mask> <mask> drawIndexed(fillMode: number, indexStart: number, indexCount: number): void; <mask> draw(fillMode: number, vertexStart: number, vertex...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1ae430fa84295886a898fa4abd6fca0c0d4a9788
src/Engines/nativeEngine.ts
class NativeTextureFormat { public static readonly RGBA = 0; }
<mask> public static readonly MIRROR_ONCE = 4; <mask> } <mask> <mask> /** @hidden */ <mask> declare var nativeEngine: INativeEngine; <mask> <mask> /** @hidden */ <mask> export class NativeEngine extends Engine { <mask> private readonly _native: INativeEngine = nativeEngine; </s> First version of ren...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1ae430fa84295886a898fa4abd6fca0c0d4a9788
src/Engines/nativeEngine.ts
private static _GetNativeTextureFormat(format: number): number { switch (format) { case Engine.TEXTUREFORMAT_RGBA: return NativeTextureFormat.RGBA; default: throw new Error("Unexpected texture format: " + format + "."); } } pu...
<mask> throw new Error("Unexpected sampling mode: " + samplingMode + "."); <mask> } <mask> } <mask> <mask> public createRenderTargetTexture(size: any, options: boolean | RenderTargetCreationOptions): InternalTexture { <mask> let fullOptions = new RenderTargetCreationOption...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1ae430fa84295886a898fa4abd6fca0c0d4a9788
src/Engines/nativeEngine.ts
fullOptions.samplingMode = options.samplingMode === undefined ? Engine.TEXTURE_TRILINEAR_SAMPLINGMODE : options.samplingMode; fullOptions.format = options.format === undefined ? Engine.TEXTUREFORMAT_RGBA : options.format;
<mask> fullOptions.generateMipMaps = options.generateMipMaps; <mask> fullOptions.generateDepthBuffer = options.generateDepthBuffer === undefined ? true : options.generateDepthBuffer; <mask> fullOptions.generateStencilBuffer = fullOptions.generateDepthBuffer && options.generateSten...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1ae430fa84295886a898fa4abd6fca0c0d4a9788
src/Engines/nativeEngine.ts
fullOptions.samplingMode = Engine.TEXTURE_TRILINEAR_SAMPLINGMODE; fullOptions.format = Engine.TEXTUREFORMAT_RGBA; } if (fullOptions.type === Engine.TEXTURETYPE_FLOAT && !this._caps.textureFloatLinearFiltering) { // if floating point linear (gl.FLOAT) then force ...
<mask> fullOptions.generateMipMaps = <boolean>options; <mask> fullOptions.generateDepthBuffer = true; <mask> fullOptions.generateStencilBuffer = false; <mask> fullOptions.type = Engine.TEXTURETYPE_UNSIGNED_INT; <mask> fullOptions.samplingMode = Texture.TR...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1ae430fa84295886a898fa4abd6fca0c0d4a9788
src/Engines/nativeEngine.ts
var width = (<{ width: number, height: number }>size).width || <number>size; var height = (<{ width: number, height: number }>size).height || <number>size; if (fullOptions.type === Engine.TEXTURETYPE_FLOAT && !this._caps.textureFloat) { fullOptions.type = Engine.TEXTURETYPE_UNSI...
<mask> fullOptions.samplingMode = Texture.TRILINEAR_SAMPLINGMODE; <mask> } <mask> var texture = new InternalTexture(this, InternalTexture.DATASOURCE_RENDERTARGET); <mask> <mask> var width = size.width || size; <mask> var height = size.height || size; <mask> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1ae430fa84295886a898fa4abd6fca0c0d4a9788
src/Engines/nativeEngine.ts
var framebuffer = this._native.createFrameBuffer( texture._webGLTexture!, width, height, NativeEngine._GetNativeTextureFormat(fullOptions.format), fullOptions.samplingMode!, fullOptions.generateStencilBuffer ? true : false, ...
<mask> <mask> var width = size.width || size; <mask> var height = size.height || size; <mask> <mask> texture._depthStencilBuffer = {}; <mask> texture._framebuffer = {}; <mask> texture.baseWidth = width; <mask> texture.baseHeight = height; <mask> texture...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1ae430fa84295886a898fa4abd6fca0c0d4a9788
src/Engines/nativeEngine.ts
texture.format = fullOptions.format;
<mask> texture.generateMipMaps = fullOptions.generateMipMaps ? true : false; <mask> texture.samplingMode = fullOptions.samplingMode; <mask> texture.type = fullOptions.type; <mask> texture._generateDepthBuffer = fullOptions.generateDepthBuffer; <mask> texture._generateStencil...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1ae430fa84295886a898fa4abd6fca0c0d4a9788
src/Engines/nativeEngine.ts
if (faceIndex) { throw new Error("Cuboid frame buffers are not yet supported in NativeEngine."); } if (requiredWidth || requiredHeight) { throw new Error("Required width/height for frame buffers not yet supported in NativeEngine."); } if (forceFu...
<mask> texture.samplingMode = samplingMode; <mask> } <mask> <mask> public bindFramebuffer(texture: InternalTexture, faceIndex?: number, requiredWidth?: number, requiredHeight?: number, forceFullscreenViewport?: boolean): void { <mask> throw new Error("bindFramebuffer not yet implemented.")...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1ae430fa84295886a898fa4abd6fca0c0d4a9788
src/Engines/nativeEngine.ts
if (disableGenerateMipMaps) { Logger.Warn("Disabling mipmap generation not yet supported in NativeEngine. Ignoring."); } if (onBeforeUnbind) { onBeforeUnbind(); } this._native.unbindFrameBuffer(texture._framebuffer!);
<mask> throw new Error("bindFramebuffer not yet implemented."); <mask> } <mask> <mask> public unBindFramebuffer(texture: InternalTexture, disableGenerateMipMaps = false, onBeforeUnbind?: () => void): void { <mask> throw new Error("unBindFramebuffer not yet implemented."); <mask> } <m...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1ae430fa84295886a898fa4abd6fca0c0d4a9788
src/Engines/nativeEngine.ts
height: calc(100% - 40px - 30px); /* nvabar top and bottom*/
<mask> overflow: hidden; <mask> font-family: sans-serif; <mask> } <mask> .wrapper { <mask> height: calc(100% - 60px - 30px); /* nvabar top and bottom*/ <mask> width: 100%; <mask> display: -ms-flexbox; <mask> display: flex; <mask> -ms-flex-direction: row; <mask> flex-direction: ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1bc29af0fc0943c556c4cad9ab50e8b0c000fde2
Playground/css/index.css
height: 40px;
<mask> border-radius: 3px; <mask> font-family: 'Montserrat' <mask> } <mask> .navbar { <mask> height: 60px; <mask> width: 100%; <mask> font-family: "Montserrat"; <mask> font-weight: 400; <mask> -webkit-user-select: none; <mask> -moz-user-select: none; </s> PG - Themes updated ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1bc29af0fc0943c556c4cad9ab50e8b0c000fde2
Playground/css/index.css
height: 40px;
<mask> .navbar.light { <mask> background-color: #efefef; <mask> } <mask> .navbar .title { <mask> height: 60px; <mask> padding-left: 10px; <mask> line-height: 60px; <mask> color: #15A4FA; <mask> display: inline-block; <mask> } </s> PG - Themes updated Former-commit-id: ae96f4e0c5ffeb...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1bc29af0fc0943c556c4cad9ab50e8b0c000fde2
Playground/css/index.css
line-height: 40px;
<mask> } <mask> .navbar .title { <mask> height: 60px; <mask> padding-left: 10px; <mask> line-height: 60px; <mask> color: #15A4FA; <mask> display: inline-block; <mask> } <mask> .navbar .version { <mask> height: 60px; </s> PG - Themes updated Former-commit-id: ae96f4e0c5ffeb6054ddc05e...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1bc29af0fc0943c556c4cad9ab50e8b0c000fde2
Playground/css/index.css
height: 40px; line-height: 40px;
<mask> color: #15A4FA; <mask> display: inline-block; <mask> } <mask> .navbar .version { <mask> height: 60px; <mask> line-height: 60px; <mask> display: inline-block; <mask> color: #7283a0; <mask> margin-right: 20px; <mask> } <mask> .navbar .category { </s> PG - Themes updated Fo...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1bc29af0fc0943c556c4cad9ab50e8b0c000fde2
Playground/css/index.css
top: 8px;
<mask> } <mask> .navbar .category.right { <mask> position: absolute; <mask> right: 0; <mask> top: 15px; <mask> } <mask> .navbar .button { <mask> display: inline-block; <mask> height: 30px; <mask> line-height: 30px; </s> PG - Themes updated Former-commit-id: ae96f4e0c5ffeb6054ddc05ec...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1bc29af0fc0943c556c4cad9ab50e8b0c000fde2
Playground/css/index.css
height: 25px; line-height: 25px;
<mask> top: 15px; <mask> } <mask> .navbar .button { <mask> display: inline-block; <mask> height: 30px; <mask> line-height: 30px; <mask> color: white; <mask> background-color: #7283a0; <mask> margin: 0 2px 0 2px; <mask> padding: 0 10px 0 10px; <mask> font-size: 0.85em; </s...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1bc29af0fc0943c556c4cad9ab50e8b0c000fde2
Playground/css/index.css
height: 30px; line-height: 30px;
<mask> cursor: pointer; <mask> background-color: #15A4FA; <mask> } <mask> .navbar .button.run { <mask> height: 40px; <mask> line-height: 40px; <mask> background-color: #15A4FA; <mask> font-size: 1.0em; <mask> } <mask> .navbar .select { <mask> position: relative; </s> PG - Themes ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1bc29af0fc0943c556c4cad9ab50e8b0c000fde2
Playground/css/index.css
<mask> content: "\00a0 \00a0 \00a0 \f078"; <mask> } <mask> .navbar .select .toDisplay { <mask> border: 1px solid #7283a0; <mask> border-radius: 5px; <mask> position: absolute; <mask> z-index: 10; <mask> left: 0; <mask> top: 32px; <mask> min-width: 100%; </s> PG - Themes update...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1bc29af0fc0943c556c4cad9ab50e8b0c000fde2
Playground/css/index.css
top: 25px;
<mask> border-radius: 5px; <mask> position: absolute; <mask> z-index: 10; <mask> left: 0; <mask> top: 32px; <mask> min-width: 100%; <mask> display: none; <mask> } <mask> .navbar .select .toDisplay .option { <mask> font-size: 0.9em; </s> PG - Themes updated Former-commit-id: ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1bc29af0fc0943c556c4cad9ab50e8b0c000fde2
Playground/css/index.css
border-bottom : 1px solid rgba(0,0,0,0.1);
<mask> height: 35px; <mask> line-height: 35px; <mask> padding: 0px 5px 0px 5px; <mask> text-align: center; <mask> } <mask> <mask> .navbar .select .toDisplay .option.light:hover { <mask> cursor: pointer; <mask> background-color: #d9d9d9; </s> PG - Themes updated Former-commit-id: ae9...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1bc29af0fc0943c556c4cad9ab50e8b0c000fde2
Playground/css/index.css
color: #7283a0;
<mask> color: white; <mask> } <mask> .navbar .select .toDisplay .option.light { <mask> background-color: white; <mask> color: #15A4FA; <mask> } <mask> .navbar .select .toDisplay .option.dark:hover { <mask> cursor: pointer; <mask> background-color: #555; <mask> } </s> PG - Themes updated ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1bc29af0fc0943c556c4cad9ab50e8b0c000fde2
Playground/css/index.css
color: #7283a0;
<mask> color: white; <mask> } <mask> <mask> .navbar .select .toDisplayBig a.light { <mask> color: #15A4FA; <mask> } <mask> <mask> <mask> <mask> .navbar .check:after { </s> PG - Themes updated Former-commit-id: ae96f4e0c5ffeb6054ddc05ecedf13a6b2ceb336 </s> remove color: #15A4FA; </s> add ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1bc29af0fc0943c556c4cad9ab50e8b0c000fde2
Playground/css/index.css
.navbarBottom .links .link.light:hover{
<mask> padding: 0 10px 0 10px; <mask> margin : 0 5px 0 5px; <mask> font-size:0.8em; <mask> } <mask> .navbarBottom .links .link:hover{ <mask> color:#999; <mask> background-color:#333; <mask> } <mask> .navbarBottom .links .link a{ <mask> text-decoration: none; </s> PG - Themes updated ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1bc29af0fc0943c556c4cad9ab50e8b0c000fde2
Playground/css/index.css
.navbarBottom .links .link.dark:hover{ color:#333; background-color:#eee; }
<mask> background-color:#333; <mask> } <mask> .navbarBottom .links .link a{ <mask> text-decoration: none; <mask> color:#999; <mask> display: inline-block; <mask> } <mask> </s> PG - Themes updated Former-commit-id: ae96f4e0c5ffeb6054ddc05ecedf13a6b2ceb336 </s> remove .navbarBottom .links .lin...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1bc29af0fc0943c556c4cad9ab50e8b0c000fde2
Playground/css/index.css
<mask> } <mask> .save-layer .save-form input, <mask> .save-layer .save-form textarea { <mask> width: 350px; <mask> } </s> PG - Themes updated Former-commit-id: ae96f4e0c5ffeb6054ddc05ecedf13a6b2ceb336 </s> remove height: 60px; </s> add height: 40px; </s> remove height: calc(100% - 60px - 30px);...
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/BabylonJS/Babylon.js/commit/1bc29af0fc0943c556c4cad9ab50e8b0c000fde2
Playground/css/index.css
var removeAllOptions = function () {
<mask> var allSelect = document.querySelectorAll('.select'); <mask> var allToDisplay = document.querySelectorAll('.toDisplay'); <mask> var allToDisplayBig = document.querySelectorAll('.toDisplayBig'); <mask> <mask> // Remove displayed options <mask> window.addEventListener('click', function (...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1bc29af0fc0943c556c4cad9ab50e8b0c000fde2
Playground/js/actions.js
} // Remove displayed options window.addEventListener('click', function () { removeAllOptions();
<mask> if (b.style.display == 'block') { <mask> b.style.display = 'none'; <mask> } <mask> } <mask> }); <mask> <mask> // Handle click on select elements <mask> for (var s of allSelect) { <mask> // Get child called to display </s> PG - Themes ...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1bc29af0fc0943c556c4cad9ab50e8b0c000fde2
Playground/js/actions.js
removeAllOptions();
<mask> // Handle click on select elements <mask> for (var s of allSelect) { <mask> // Get child called to display <mask> s.addEventListener('click', function (e) { <mask> var toDisplay = this.querySelector('.toDisplay'); <mask> if (toDisplay) { <mask> ...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1bc29af0fc0943c556c4cad9ab50e8b0c000fde2
Playground/js/actions.js
// Restore theme var theme = localStorage.getItem("bjs-playground-theme") || 'light'; toggleTheme(theme);
<mask> } else { <mask> loadScript("scripts/basic scene.js", "Basic scene"); <mask> } <mask> } <mask> } <mask> } <mask> }; <mask> <mask> xh...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1bc29af0fc0943c556c4cad9ab50e8b0c000fde2
Playground/js/index.js
this._engineData = scene.getEngine().getOrAddExternalDataWithFactory("__BJSCANVAS2D__", k => new Canvas2DEngineBoundData());
<mask> return c; <mask> } <mask> <mask> protected setupCanvas(scene: Scene, name: string, size: Size, isScreenSpace: boolean = true, cachingstrategy: number = Canvas2D.CACHESTRATEGY_TOPLEVELGROUPS) { <mask> this._cachingStrategy = cachingstrategy; <mask> this._...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1c47c17c3c73998e93a755bc269f640dc30f109f
src/Canvas2d/babylon.canvas2d.ts
// Register scene dispose to also dispose the canvas when it'll happens scene.onDisposeObservable.add((d, s) => { this.dispose(); });
<mask> this._engine = scene.getEngine(); <mask> this._renderingSize = new Size(0, 0); <mask> <mask> if (cachingstrategy !== Canvas2D.CACHESTRATEGY_TOPLEVELGROUPS) { <mask> this._background = Rectangle2D.Create(this, "###CANVAS BACKGROUND###", 0, 0, size.width, s...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1c47c17c3c73998e93a755bc269f640dc30f109f
src/Canvas2d/babylon.canvas2d.ts
if (this._groupCacheMaps) { this._groupCacheMaps.forEach(m => m.dispose()); this._groupCacheMaps = null; }
<mask> this._afterRenderObserver = null; <mask> } <mask> } <mask> <mask> /** <mask> * Accessor to the Scene that owns the Canvas <mask> * @returns The instance of the Scene object <mask> */ </s> Engine: added the pattern to attach external...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1c47c17c3c73998e93a755bc269f640dc30f109f
src/Canvas2d/babylon.canvas2d.ts
public get engineData(): Canvas2DEngineBoundData { return this._engineData; }
<mask> this._background.roundRadius = value; <mask> this._background.isVisible = true; <mask> } <mask> <mask> private checkBackgroundAvailability() { <mask> if (this._cachingStrategy === Canvas2D.CACHESTRATEGY_TOPLEVELGROUPS) { <mask> throw Err...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1c47c17c3c73998e93a755bc269f640dc30f109f
src/Canvas2d/babylon.canvas2d.ts
private _engineData: Canvas2DEngineBoundData;
<mask> return this._hierarchyLevelZFactor; <mask> } <mask> <mask> private _mapCounter = 0; <mask> private _background: Rectangle2D; <mask> private _scene: Scene; <mask> private _engine: Engine; <mask> private _isScreeSpace: boolean; </s> Engine: adde...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1c47c17c3c73998e93a755bc269f640dc30f109f
src/Canvas2d/babylon.canvas2d.ts
this._modelCache.addRef();
<mask> this._owner = owner; <mask> this._modelCache = cache; <mask> this._instancesPartsData = new Array<DynamicFloatArray>(); <mask> this._instancesPartsBuffer = new Array<WebGLBuffer>(); <mask> this._instancesPartsBufferSize = new Array<number>(); <mas...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1c47c17c3c73998e93a755bc269f640dc30f109f
src/Canvas2d/babylon.modelRenderCache.ts
constructor(engine: Engine, modelKey: string, isTransparent: boolean) { this._engine = engine;
<mask> _instancesPartsUsedShaderCategories: string[]; <mask> } <mask> <mask> export class ModelRenderCache { <mask> constructor(modelKey: string, isTransparent: boolean) { <mask> this._modelKey = modelKey; <mask> this._isTransparent = isTransparent; <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1c47c17c3c73998e93a755bc269f640dc30f109f
src/Canvas2d/babylon.modelRenderCache.ts
this._refCounter = 1;
<mask> this._isTransparent = isTransparent; <mask> this._nextKey = 1; <mask> this._instancesData = new StringDictionary<InstanceDataBase[]>(); <mask> } <mask> <mask> public dispose(): boolean { <mask> if (--this._refCounter !== 0) { <mask> ...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1c47c17c3c73998e93a755bc269f640dc30f109f
src/Canvas2d/babylon.modelRenderCache.ts
protected _engine: Engine;
<mask> } <mask> }); <mask> } <mask> <mask> private _modelKey: string; <mask> private _isTransparent: boolean; <mask> <mask> public get isTransparent() { <mask> return this._isTransparent; <mask> } </s> Engine: added the pattern...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1c47c17c3c73998e93a755bc269f640dc30f109f
src/Canvas2d/babylon.modelRenderCache.ts
private _refCounter: number;
<mask> <mask> private _nextKey: number; <mask> _partIdList: number[]; <mask> _partsDataStride: number[]; <mask> _partsUsedCategories: Array<string[]>; <mask> _partsJoinedUsedCategories: string[]; </s> Engine: added the pattern to attach external data to an instance of the...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1c47c17c3c73998e93a755bc269f640dc30f109f
src/Canvas2d/babylon.modelRenderCache.ts
constructor(engine: Engine, modelKey: string, isTransparent: boolean) { super(engine, modelKey, isTransparent);
<mask> borderIndicesCount: number; <mask> instancingBorderAttributes: InstancingAttributeInfo[]; <mask> effectBorder: Effect; <mask> <mask> constructor(modelKey: string, isTransparent: boolean) { <mask> super(modelKey, isTransparent); <mask> } <mask> <mask>...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1c47c17c3c73998e93a755bc269f640dc30f109f
src/Canvas2d/babylon.rectangle2d.ts
let renderCache = new Rectangle2DRenderCache(this.owner.engine, modelKey, isTransparent);
<mask> <mask> public static roundSubdivisions = 16; <mask> <mask> protected createModelRenderCache(modelKey: string, isTransparent: boolean): ModelRenderCache { <mask> let renderCache = new Rectangle2DRenderCache(modelKey, isTransparent); <mask> return renderCache; <mask...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1c47c17c3c73998e93a755bc269f640dc30f109f
src/Canvas2d/babylon.rectangle2d.ts
this._modelRenderCache = this.owner.engineData.GetOrAddModelCache(this.modelKey, (key: string) => {
<mask> <mask> // Need to create the model? <mask> let setupModelRenderCache = false; <mask> if (!this._modelRenderCache || this._modelDirty) { <mask> this._modelRenderCache = SmartPropertyPrim.GetOrAddModelCache(this.modelKey, (key: string) => { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1c47c17c3c73998e93a755bc269f640dc30f109f
src/Canvas2d/babylon.renderablePrim2d.ts
// if this is still false it means the MRC already exists, so we add a reference to it if (!setupModelRenderCache) { this._modelRenderCache.addRef(); }
<mask> return mrc; <mask> }); <mask> this._modelDirty = false; <mask> } <mask> <mask> // Need to create the instance? <mask> let gii: GroupInstanceInfo; <mask> let newInstance = false; <mask> if (!t...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1c47c17c3c73998e93a755bc269f640dc30f109f
src/Canvas2d/babylon.renderablePrim2d.ts
<mask> public get isDirty(): boolean { <mask> return (this._instanceDirtyFlags !== 0) || this._modelDirty; <mask> } <mask> <mask> protected static GetOrAddModelCache<TInstData>(key: string, factory: (key: string) => ModelRenderCache): ModelRenderCache { <mask> retu...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1c47c17c3c73998e93a755bc269f640dc30f109f
src/Canvas2d/babylon.smartPropertyPrim.ts
// check for disposed first, do nothing if (this.isDisposed) { return; }
<mask> let getter = descriptor.get, setter = descriptor.set; <mask> <mask> // Overload the property setter implementation to add our own logic <mask> descriptor.set = function (val) { <mask> let curVal = getter.call(this); <mask> <mask> ...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1c47c17c3c73998e93a755bc269f640dc30f109f
src/Canvas2d/babylon.smartPropertyPrim.ts
let renderCache = new Sprite2DRenderCache(this.owner.engine, modelKey, isTransparent);
<mask> return sprite; <mask> } <mask> <mask> protected createModelRenderCache(modelKey: string, isTransparent: boolean): ModelRenderCache { <mask> let renderCache = new Sprite2DRenderCache(modelKey, isTransparent); <mask> return renderCache; <mask> } ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1c47c17c3c73998e93a755bc269f640dc30f109f
src/Canvas2d/babylon.sprite2d.ts
let renderCache = new Text2DRenderCache(this.owner.engine, modelKey, isTransparent);
<mask> return text2d; <mask> } <mask> <mask> protected createModelRenderCache(modelKey: string, isTransparent: boolean): ModelRenderCache { <mask> let renderCache = new Text2DRenderCache(modelKey, isTransparent); <mask> return renderCache; <mask> } <m...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1c47c17c3c73998e93a755bc269f640dc30f109f
src/Canvas2d/babylon.text2d.ts
<mask> super(name, scene); <mask> <mask> this._canvas = canvas; <mask> } <mask> private _canvas: Canvas2D; <mask> <mask> } <mask> } </s> Engine: added the pattern to attach external data to an instance of the engine through the addExternalData(), getExternalData(), ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1c47c17c3c73998e93a755bc269f640dc30f109f
src/Canvas2d/babylon.worldSpaceCanvas2d.ts
public dispose(): void { super.dispose(); if (this._canvas) { this._canvas.dispose(); this._canvas = null; } } private _canvas: Canvas2D;
<mask> this._canvas = canvas; <mask> } <mask> <mask> } <mask> } </s> Engine: added the pattern to attach external data to an instance of the engine through the addExternalData(), getExternalData(), getOrAddExternalDataWithFactory() and removeExternalData() methods. Scene: fixed OnDispose ...
[ "keep", "keep", "add", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1c47c17c3c73998e93a755bc269f640dc30f109f
src/Canvas2d/babylon.worldSpaceCanvas2d.ts
private _externalData: StringDictionary<Object>;
<mask> private _workingCanvas: HTMLCanvasElement; <mask> private _workingContext: CanvasRenderingContext2D; <mask> <mask> private _bindedRenderFunction: any; <mask> <mask> /** <mask> * @constructor <mask> * @param {HTMLCanvasElement} canvas - the canvas to be ...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1c47c17c3c73998e93a755bc269f640dc30f109f
src/babylon.engine.ts
this._externalData = new StringDictionary<Object>();
<mask> */ <mask> constructor(canvas: HTMLCanvasElement, antialias?: boolean, options?: { antialias?: boolean, preserveDrawingBuffer?: boolean, limitDeviceRatio?: number }, adaptToDeviceRatio = true) { <mask> this._renderingCanvas = canvas; <mask> <mask> options = options |...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1c47c17c3c73998e93a755bc269f640dc30f109f
src/babylon.engine.ts
if (this.onDisposeObservable) { this.onDisposeObservable.notifyObservers(this);
<mask> // Debug layer <mask> this.debugLayer.hide(); <mask> <mask> // Events <mask> if (this.onDispose) { <mask> this.onDispose(); <mask> } <mask> <mask> this.onBeforeRenderObservable.clear(); <mask> this.onA...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1c47c17c3c73998e93a755bc269f640dc30f109f
src/babylon.scene.ts
<mask> const zoomIcon: string = require("../../public/imgs/zoomIcon.svg"); <mask> const guidesIcon: string = require("../../public/imgs/guidesIcon.svg"); <mask> const logoIcon: string = require("../../public/imgs/babylonLogo.svg"); <mask> const canvasFitIcon: string = require("../../public/imgs/canvasFitIcon.svg");...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1d63fe1196712a94a8c9001c8bf1e6cd8baea3ae
guiEditor/src/components/commandBarComponent.tsx
<mask> export class CommandBarComponent extends React.Component<ICommandBarComponentProps> { <mask> private _panning: boolean = false; <mask> private _zooming: boolean = false; <mask> private _selecting: boolean = true; <mask> //private _moving: boolean = false; <mask> private _outlines: boole...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1d63fe1196712a94a8c9001c8bf1e6cd8baea3ae
guiEditor/src/components/commandBarComponent.tsx
<mask> props.globalState.onPanObservable.add(() => { <mask> this._panning = !this._panning; <mask> this._zooming = false; <mask> this._selecting = false; <mask> //this._moving = false; <mask> this.forceUpdate(); <mask> }); <mask> <mas...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1d63fe1196712a94a8c9001c8bf1e6cd8baea3ae
guiEditor/src/components/commandBarComponent.tsx
<mask> props.globalState.onSelectionButtonObservable.add(() => { <mask> this._selecting = !this._selecting; <mask> this._panning = false; <mask> this._zooming = false; <mask> // this._moving = false; <mask> this.forceUpdate(); <mask> }); ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1d63fe1196712a94a8c9001c8bf1e6cd8baea3ae
guiEditor/src/components/commandBarComponent.tsx
<mask> props.globalState.onZoomObservable.add(() => { <mask> this._zooming = !this._zooming; <mask> this._panning = false; <mask> this._selecting = false; <mask> // this._moving = false; <mask> this.forceUpdate(); <mask> }); <mask> <ma...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1d63fe1196712a94a8c9001c8bf1e6cd8baea3ae
guiEditor/src/components/commandBarComponent.tsx
<mask> // this._moving = false; <mask> this.forceUpdate(); <mask> }); <mask> <mask> /* props.globalState.onMoveObservable.add(() => { <mask> this._zooming = false; <mask> this._panning = false; <mask> this._selecting = false; <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1d63fe1196712a94a8c9001c8bf1e6cd8baea3ae
guiEditor/src/components/commandBarComponent.tsx
<mask> private _altKeyIsPressed = false; <mask> private _constraintDirection = ConstraintDirection.NONE; <mask> private _forcePanning = false; <mask> private _forceZooming = false; <mask> //private _forceMoving = false; <mask> private _forceSelecting = true; <mask> private _outlines =...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1d63fe1196712a94a8c9001c8bf1e6cd8baea3ae
guiEditor/src/diagram/workbench.tsx
<mask> <mask> props.globalState.onPanObservable.add(() => { <mask> this._forcePanning = !this._forcePanning; <mask> this._forceSelecting = false; <mask> //this._forceMoving = false; <mask> this._forceZooming = false; <mask> if (!this._forcePann...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1d63fe1196712a94a8c9001c8bf1e6cd8baea3ae
guiEditor/src/diagram/workbench.tsx
<mask> this.updateHitTest(this.globalState.guiTexture.getChildren()[0], this._forceSelecting); <mask> this.artBoardBackground.isHitTestVisible = true; <mask> }); <mask> <mask> /*props.globalState.onMoveObservable.add(() => { <mask> this._forceMoving = !this._fo...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "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/1d63fe1196712a94a8c9001c8bf1e6cd8baea3ae
guiEditor/src/diagram/workbench.tsx
<mask> props.globalState.onSelectionButtonObservable.add(() => { <mask> this._forceSelecting = !this._forceSelecting; <mask> this._forcePanning = false; <mask> this._forceZooming = false; <mask> //this._forceMoving = false; <mask> this._canvas.st...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1d63fe1196712a94a8c9001c8bf1e6cd8baea3ae
guiEditor/src/diagram/workbench.tsx
<mask> this._forceZooming = false; <mask> //this._forceMoving = false; <mask> this._canvas.style.cursor = "default"; <mask> this.updateHitTest(this.globalState.guiTexture.getChildren()[0], this._forceSelecting); <mask> /*if (this._forceMoving) { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1d63fe1196712a94a8c9001c8bf1e6cd8baea3ae
guiEditor/src/diagram/workbench.tsx
<mask> props.globalState.onZoomObservable.add(() => { <mask> this._forceZooming = !this._forceZooming; <mask> this._forcePanning = false; <mask> this._forceSelecting = false; <mask> //this._forceMoving = false; <mask> if (!this._forceZooming) { ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1d63fe1196712a94a8c9001c8bf1e6cd8baea3ae
guiEditor/src/diagram/workbench.tsx
if (!this._doubleClick && this._isMainSelectionParent(guiControl)) {
<mask> const onPointerDown = guiControl.onPointerDownObservable.add((evt) => { <mask> if (!this.isUp || evt.buttonIndex > 0) return; <mask> if (this._forceSelecting) { <mask> console.log(guiControl.name); <mask> if (!this._doubleClick && this._isMainS...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/1d63fe1196712a94a8c9001c8bf1e6cd8baea3ae
guiEditor/src/diagram/workbench.tsx