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
"playgroundId": "#DS8AA7#17",
<mask> "referenceImage": "gltfMaterialMixed.png" <mask> }, <mask> { <mask> "title": "GLTF Material Specular Glossiness (0)", <mask> "playgroundId": "#DS8AA7#15", <mask> "replace": "__folder__, Material_SpecularGlossiness, __page__, 0", <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6cf2ce3a607e65694bfc1c02912c3b98ddda48e0
tests/validation/config.json
"playgroundId": "#DS8AA7#17",
<mask> "referenceImage": "gltfMaterialSpecularGlossiness0.png" <mask> }, <mask> { <mask> "title": "GLTF Material Specular Glossiness (1)", <mask> "playgroundId": "#DS8AA7#15", <mask> "replace": "__folder__, Material_SpecularGlossiness, __page__, 1", ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6cf2ce3a607e65694bfc1c02912c3b98ddda48e0
tests/validation/config.json
"playgroundId": "#DS8AA7#17",
<mask> "referenceImage": "gltfMaterialSpecularGlossiness1.png" <mask> }, <mask> { <mask> "title": "GLTF Mesh Primitive Attribute", <mask> "playgroundId": "#DS8AA7#15", <mask> "replace": "__folder__, Mesh_PrimitiveAttribute, __page__, 0", <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6cf2ce3a607e65694bfc1c02912c3b98ddda48e0
tests/validation/config.json
"playgroundId": "#DS8AA7#17",
<mask> "referenceImage": "gltfMeshPrimitiveAttribute.png" <mask> }, <mask> { <mask> "title": "GLTF Mesh Primitive Mode (0)", <mask> "playgroundId": "#DS8AA7#15", <mask> "replace": "__folder__, Mesh_PrimitiveMode, __page__, 0", <mask> "re...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6cf2ce3a607e65694bfc1c02912c3b98ddda48e0
tests/validation/config.json
"playgroundId": "#DS8AA7#17",
<mask> "referenceImage": "gltfMeshPrimitiveMode0.png" <mask> }, <mask> { <mask> "title": "GLTF Mesh Primitive Mode (1)", <mask> "playgroundId": "#DS8AA7#15", <mask> "replace": "__folder__, Mesh_PrimitiveMode, __page__, 1", <mask> "refere...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6cf2ce3a607e65694bfc1c02912c3b98ddda48e0
tests/validation/config.json
"playgroundId": "#DS8AA7#17",
<mask> "referenceImage": "gltfMeshPrimitiveMode1.png" <mask> }, <mask> { <mask> "title": "GLTF Mesh Primitive Vertex Color", <mask> "playgroundId": "#DS8AA7#15", <mask> "replace": "__folder__, Mesh_PrimitiveVertexColor, __page__, 0", <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6cf2ce3a607e65694bfc1c02912c3b98ddda48e0
tests/validation/config.json
"playgroundId": "#DS8AA7#17",
<mask> "referenceImage": "gltfMeshPrimitiveVertexColor.png" <mask> }, <mask> { <mask> "title": "GLTF Mesh Primitives", <mask> "playgroundId": "#DS8AA7#15", <mask> "replace": "__folder__, Mesh_Primitives, __page__, 0", <mask> "referenceIm...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6cf2ce3a607e65694bfc1c02912c3b98ddda48e0
tests/validation/config.json
"playgroundId": "#DS8AA7#17",
<mask> "referenceImage": "gltfMeshPrimitives.png" <mask> }, <mask> { <mask> "title": "GLTF Mesh Primitives UV (0)", <mask> "playgroundId": "#DS8AA7#15", <mask> "replace": "__folder__, Mesh_PrimitivesUV, __page__, 0", <mask> "referenceIma...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6cf2ce3a607e65694bfc1c02912c3b98ddda48e0
tests/validation/config.json
"playgroundId": "#DS8AA7#17",
<mask> "referenceImage": "gltfMeshPrimitivesUV0.png" <mask> }, <mask> { <mask> "title": "GLTF Mesh Primitives UV (1)", <mask> "playgroundId": "#DS8AA7#15", <mask> "replace": "__folder__, Mesh_PrimitivesUV, __page__, 1", <mask> "reference...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6cf2ce3a607e65694bfc1c02912c3b98ddda48e0
tests/validation/config.json
"playgroundId": "#DS8AA7#17",
<mask> "referenceImage": "gltfMeshPrimitivesUV1.png" <mask> }, <mask> { <mask> "title": "GLTF Node Attribute (0)", <mask> "playgroundId": "#DS8AA7#15", <mask> "replace": "__folder__, Node_Attribute, __page__, 0", <mask> "referenceImage":...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6cf2ce3a607e65694bfc1c02912c3b98ddda48e0
tests/validation/config.json
"playgroundId": "#DS8AA7#17",
<mask> "referenceImage": "gltfNodeAttribute0.png" <mask> }, <mask> { <mask> "title": "GLTF Node Attribute (1)", <mask> "playgroundId": "#DS8AA7#15", <mask> "replace": "__folder__, Node_Attribute, __page__, 1", <mask> "referenceImage": "g...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6cf2ce3a607e65694bfc1c02912c3b98ddda48e0
tests/validation/config.json
"playgroundId": "#DS8AA7#17",
<mask> "referenceImage": "gltfNodeAttribute1.png" <mask> }, <mask> { <mask> "title": "GLTF Node NegativeScale (0)", <mask> "playgroundId": "#DS8AA7#15", <mask> "replace": "__folder__, Node_NegativeScale, __page__, 0", <mask> "referenceIm...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6cf2ce3a607e65694bfc1c02912c3b98ddda48e0
tests/validation/config.json
"playgroundId": "#DS8AA7#17",
<mask> "referenceImage": "gltfNodeNegativeScale0.png" <mask> }, <mask> { <mask> "title": "GLTF Node NegativeScale (1)", <mask> "playgroundId": "#DS8AA7#15", <mask> "replace": "__folder__, Node_NegativeScale, __page__, 1", <mask> "referen...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6cf2ce3a607e65694bfc1c02912c3b98ddda48e0
tests/validation/config.json
"playgroundId": "#DS8AA7#17",
<mask> "referenceImage": "gltfNodeNegativeScale1.png" <mask> }, <mask> { <mask> "title": "GLTF Texture Sampler (0)", <mask> "playgroundId": "#DS8AA7#15", <mask> "replace": "__folder__, Texture_Sampler, __page__, 0", <mask> "referenceImag...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6cf2ce3a607e65694bfc1c02912c3b98ddda48e0
tests/validation/config.json
"playgroundId": "#DS8AA7#17",
<mask> "referenceImage": "gltfTextureSampler0.png" <mask> }, <mask> { <mask> "title": "GLTF Texture Sampler (1)", <mask> "playgroundId": "#DS8AA7#15", <mask> "replace": "__folder__, Texture_Sampler, __page__, 1", <mask> "referenceImage":...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6cf2ce3a607e65694bfc1c02912c3b98ddda48e0
tests/validation/config.json
"playgroundId": "#G1FXQ4#0",
<mask> "referenceImage": "KernelBlur.png" <mask> }, <mask> { <mask> "title": "GLTF Mesh Primitive Attribute Test", <mask> "scriptToRun": "/Demos/GLTFMeshPrimitiveAttributeTest/index.js", <mask> "functionToCall": "createScene", <mask> "re...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6cf2ce3a607e65694bfc1c02912c3b98ddda48e0
tests/validation/config.json
"playgroundId": "#DFQKIR#0",
<mask> "referenceImage": "gltfMeshPrimAttribTest.png" <mask> }, <mask> { <mask> "title": "PBR glossy", <mask> "replace": "engine.setHardwareScalingLevel, //engine.setHardwareScalingLevel", <mask> "scriptToRun": "/Demos/PBRGlossy/index.js", <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6cf2ce3a607e65694bfc1c02912c3b98ddda48e0
tests/validation/config.json
"playgroundId": "#PI9IE8#4",
<mask> "referenceImage": "pbrglossy.png" <mask> }, <mask> { <mask> "title": "PBR rough", <mask> "playgroundId": "#PI9IE8#3", <mask> "referenceImage": "pbrrough.png" <mask> }, <mask> { <mask> "title": "Particles", <mask...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6cf2ce3a607e65694bfc1c02912c3b98ddda48e0
tests/validation/config.json
var scriptToRun = request.responseText.replace(/..\/..\/assets\//g, config.root + "/Assets/"); scriptToRun = scriptToRun.replace(/..\/..\/Assets\//g, config.root + "/Assets/"); scriptToRun = scriptToRun.replace(/\/assets\//g, config.root + "/Asse...
<mask> if (request.readyState === 4) { <mask> try { <mask> request.onreadystatechange = null; <mask> <mask> var scriptToRun = request.responseText.replace(/..\/..\/assets\//g, config.root + "/assets/"); <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6cf2ce3a607e65694bfc1c02912c3b98ddda48e0
tests/validation/validation.js
getData: () => sceneInstrumentation.activeMeshesEvaluationTimeCounter.current,
<mask> const sceneInstrumentation = new SceneInstrumentation(scene); <mask> sceneInstrumentation.captureActiveMeshesEvaluationTime = true; <mask> return { <mask> id: "meshes selection time", <mask> getData: () => sceneInstrumentation.activeMeshesE...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6d862d753e8ab6cc70f02bf4fc4e839b496bbd8d
src/Misc/PerformanceViewer/performanceViewerCollectionStrategies.ts
return (_, sceneInstrumentation) => {
<mask> * Gets the initializer for the strategy used for collection of render targets time metrics. <mask> * @returns the initializer for the render targets time strategy <mask> */ <mask> public static RenderTargetsStrategy(): PerfStrategyInitialization { <mask> return (scene) => { <mask...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6d862d753e8ab6cc70f02bf4fc4e839b496bbd8d
src/Misc/PerformanceViewer/performanceViewerCollectionStrategies.ts
return (_, sceneInstrumentation) => {
<mask> * Gets the initializer for the strategy used for collection of inter-frame time metrics. <mask> * @returns the initializer for the inter-frame time strategy <mask> */ <mask> public static InterFrameStrategy(): PerfStrategyInitialization { <mask> return (scene) => { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6d862d753e8ab6cc70f02bf4fc4e839b496bbd8d
src/Misc/PerformanceViewer/performanceViewerCollectionStrategies.ts
effect._wasPreviouslyReady = false;
<mask> for (var key in this._compiledEffects) { <mask> let effect = <Effect>this._compiledEffects[key]; <mask> <mask> effect._pipelineContext = null; // because _prepareEffect will try to dispose this pipeline before recreating it and that would lead to webgl errors <mask> ...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6db6f9a002965054bf82effd0555b78b45d4e01d
src/Engines/thinEngine.ts
this._effectiveMaterial = null;
<mask> } <mask> } <mask> super._rebuild(dispose); <mask> } <mask> <mask> /** @hidden */ <mask> public _freeze() { <mask> if (!this.subMeshes) { </s> Fix context restoration when meshes are frozen Former-commit-id: 91ef767adea8d9413db054bbc2fb94f708199b4e
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6db6f9a002965054bf82effd0555b78b45d4e01d
src/Meshes/mesh.ts
} else if ((material._storeEffectOnSubMeshes && !subMesh.effect?._wasPreviouslyReady) || (!material._storeEffectOnSubMeshes && !material.getEffect()?._wasPreviouslyReady)) { if (oldCamera) { oldCamera.maxZ = oldCameraMaxZ; scene.updateTransformMatrix(true); ...
<mask> } <mask> <mask> this._effectiveMaterial = material; <mask> } <mask> <mask> // Alpha mode <mask> if (enableAlphaMode) { <mask> engine.setAlphaMode(this._effectiveMaterial.alphaMode); </s> Fix context restoration when meshes are frozen Former...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6db6f9a002965054bf82effd0555b78b45d4e01d
src/Meshes/mesh.ts
this.skeleton.prepare(); var skeletonMatrices = this.skeleton.getTransformMatrices(this._effectiveMesh);
<mask> var needExtras = this.numBoneInfluencers > 4; <mask> var matricesIndicesExtraData = needExtras ? this.getVerticesData(VertexBuffer.MatricesIndicesExtraKind) : null; <mask> var matricesWeightsExtraData = needExtras ? this.getVerticesData(VertexBuffer.MatricesWeig...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6dc0815232c63d5f8292f62b180c6554bb7d6d6d
src/Meshes/abstractMesh.ts
const effectiveMesh = this._effectiveMesh;
<mask> } <mask> <mask> /** @hidden */ <mask> public _updateBoundingInfo(): AbstractMesh { <mask> const effectiveMesh = (this.skeleton && this.skeleton.overrideMesh) || this; <mask> if (this._boundingInfo) { <mask> this._boundingInfo.update(effectiveMesh.worldMatrixFromCac...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6dc0815232c63d5f8292f62b180c6554bb7d6d6d
src/Meshes/abstractMesh.ts
protected get _effectiveMesh(): AbstractMesh { return (this.skeleton && this.skeleton.overrideMesh) || this; }
<mask> // Bounding info <mask> this._updateBoundingInfo(); <mask> } <mask> <mask> /** <mask> * Returns `true` if the mesh is within the frustum defined by the passed array of planes. <mask> * A mesh is in the frustum if its bounding box intersects the frustum <mask> * @pa...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6dc0815232c63d5f8292f62b180c6554bb7d6d6d
src/Meshes/abstractMesh.ts
var world = this._effectiveMesh.getWorldMatrix();
<mask> <mask> var offset = 0; <mask> var instancesCount = 0; <mask> <mask> const effectiveMesh = (this.skeleton && this.skeleton.overrideMesh) || this; <mask> <mask> var world = effectiveMesh.getWorldMatrix(); <mask> if (batch.renderSelf[subMesh._id]) { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6dc0815232c63d5f8292f62b180c6554bb7d6d6d
src/Meshes/mesh.ts
<mask> public _processRendering(subMesh: SubMesh, effect: Effect, fillMode: number, batch: _InstancesBatch, hardwareInstancedRendering: boolean, <mask> onBeforeDraw: (isInstance: boolean, world: Matrix, effectiveMaterial?: Material) => void, effectiveMaterial?: Material): Mesh { <mask> var scene ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6dc0815232c63d5f8292f62b180c6554bb7d6d6d
src/Meshes/mesh.ts
onBeforeDraw(false, this._effectiveMesh.getWorldMatrix(), effectiveMaterial);
<mask> } else { <mask> if (batch.renderSelf[subMesh._id]) { <mask> // Draw <mask> if (onBeforeDraw) { <mask> onBeforeDraw(false, effectiveMesh.getWorldMatrix(), effectiveMaterial); <mask> } <mask> <mask> thi...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6dc0815232c63d5f8292f62b180c6554bb7d6d6d
src/Meshes/mesh.ts
const effectiveMesh = this._effectiveMesh;
<mask> if (!effect) { <mask> return this; <mask> } <mask> <mask> const effectiveMesh = (this.skeleton && this.skeleton.overrideMesh) || this; <mask> <mask> var sideOrientation = this.overrideMaterialSideOrientation; <mask> if (sideOrientation == null) { <ma...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6dc0815232c63d5f8292f62b180c6554bb7d6d6d
src/Meshes/mesh.ts
readonly COMMAND_BINDFRAMEBUFFER: number; readonly COMMAND_UNBINDFRAMEBUFFER: number; readonly COMMAND_DELETEFRAMEBUFFER: number;
<mask> readonly COMMAND_SETFLOAT2: number; <mask> readonly COMMAND_SETFLOAT3: number; <mask> readonly COMMAND_SETFLOAT4: number; <mask> readonly COMMAND_SETTEXTUREWRAPMODE: number; <mask> readonly COMMAND_DRAWINDEXED: number; <mask> readonly COMMAND_DRAW: number; <mask> readonly COMMA...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6e3479a382d2db0f5f826942ec6539539a4584b2
src/Engines/nativeEngine.ts
<mask> createImageBitmap(data: ArrayBufferView): ImageBitmap; <mask> resizeImageBitmap(image: ImageBitmap, bufferWidth: number, bufferHeight: number) : Uint8Array; <mask> <mask> createFrameBuffer(texture: WebGLTexture, width: number, height: number, format: number, generateStencilBuffer: boolean, gener...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6e3479a382d2db0f5f826942ec6539539a4584b2
src/Engines/nativeEngine.ts
this._commandBufferEncoder.beginEncodingCommand(this._native.COMMAND_UNBINDFRAMEBUFFER); this._commandBufferEncoder.encodeCommandArgAsUInt32(this._currentFramebuffer); this._commandBufferEncoder.finishEncodingCommand();
<mask> */ <mask> public _bindUnboundFramebuffer(framebuffer: Nullable<WebGLFramebuffer>) { <mask> if (this._currentFramebuffer !== framebuffer) { <mask> if (this._currentFramebuffer) { <mask> this._native.unbindFrameBuffer(this._currentFramebuffer!); <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6e3479a382d2db0f5f826942ec6539539a4584b2
src/Engines/nativeEngine.ts
this._commandBufferEncoder.beginEncodingCommand(this._native.COMMAND_BINDFRAMEBUFFER); this._commandBufferEncoder.encodeCommandArgAsUInt32(framebuffer); this._commandBufferEncoder.finishEncodingCommand();
<mask> this._native.unbindFrameBuffer(this._currentFramebuffer!); <mask> } <mask> <mask> if (framebuffer) { <mask> this._native.bindFrameBuffer(framebuffer); <mask> } <mask> <mask> this._currentFramebuffer = framebuffer; <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6e3479a382d2db0f5f826942ec6539539a4584b2
src/Engines/nativeEngine.ts
this._commandBufferEncoder.beginEncodingCommand(this._native.COMMAND_DELETEFRAMEBUFFER); this._commandBufferEncoder.encodeCommandArgAsUInt32(texture._framebuffer); this._commandBufferEncoder.finishEncodingCommand();
<mask> } <mask> <mask> public _releaseFramebufferObjects(texture: InternalTexture): void { <mask> if (texture._framebuffer) { <mask> this._native.deleteFrameBuffer(texture._framebuffer); <mask> texture._framebuffer = null; <mask> } <mask> } <mask> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6e3479a382d2db0f5f826942ec6539539a4584b2
src/Engines/nativeEngine.ts
private _groundMirrorEnabled = true;
<mask> this.environmentHelper.ground.setEnabled(this._groundEnabled); <mask> } <mask> } <mask> <mask> private _groundMirrorEnabled = false; <mask> /** <mask> * gets wether the reflection is disabled. <mask> */ <mask> public get groundMirrorEnabled(): boolean { <m...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6fe87745121faee96857b412c9c291b7447c8b54
Viewer/src/viewer/sceneManager.ts
if (!value) {
<mask> } <mask> <mask> this._groundMirrorEnabled = value; <mask> if (this.environmentHelper && this.environmentHelper.groundMaterial && this.environmentHelper.groundMirror) { <mask> if (value) { <mask> this.environmentHelper.groundMaterial.reflectionTexture = n...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6fe87745121faee96857b412c9c291b7447c8b54
Viewer/src/viewer/sceneManager.ts
assert.isFalse(viewer.sceneManager.scene.imageProcessingConfiguration.applyByPostProcess);
<mask> assert.isNull(viewer.sceneManager.defaultRenderingPipeline); <mask> assert.isFalse(viewer.sceneManager.defaultRenderingPipelineEnabled); <mask> <mask> viewer.sceneManager.defaultRenderingPipelineEnabled = true; <mask> <mask> assert.isDefined(viewer.sceneMan...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/6fe87745121faee96857b412c9c291b7447c8b54
Viewer/tests/unit/src/viewer/sceneManager.ts
"../../serializers/src/glTF/2.0/babylon.glTFSerializer.ts", "../../serializers/src/glTF/2.0/babylon.glTFExporter.ts"
<mask> "output": "babylon.objSerializer.js" <mask> }, <mask> { <mask> "files": [ <mask> "../../serializers/src/glTF/2.0/babylon.glTFSerializer.ts" <mask> ], <mask> "output": "babylon.glTF2Serializer.js" <...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/70124623779b60394417435f5c4dea4759db4711
Tools/Gulp/config.json
export class GLTF2Export {
<mask> /// <reference path="../../../../dist/preview release/babylon.d.ts"/> <mask> <mask> module BABYLON { <mask> interface OGLTFAsset { <mask> generator: string; <mask> version: string; <mask> } <mask> interface OGLTFScene { <mask> nodes: number[]; <mask> } <mask> ...
[ "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", ...
https://github.com/BabylonJS/Babylon.js/commit/70124623779b60394417435f5c4dea4759db4711
serializers/src/glTF/2.0/babylon.glTFSerializer.ts
* * @returns {[fileName: string]: string | Blob} Returns an object with a .gltf, .glb and associates textures * as keys and their data and paths as values.
<mask> * Exports the geometry of a Mesh array in .gltf file format. <mask> * If glb is set to true, exports as .glb. <mask> * @param meshes <mask> * @param materials <mask> * @param glb <mask> */ <mask> public static GLTF(meshes: Mesh[], filename: ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/70124623779b60394417435f5c4dea4759db4711
serializers/src/glTF/2.0/babylon.glTFSerializer.ts
public static GLTF(scene: BABYLON.Scene, filename: string): {[fileName: string]: string | Blob} { let glTFPrefix = filename.replace(/\.[^/.]+$/, ""); let gltfGenerator = new _GLTF2Exporter(scene);
<mask> * @param meshes <mask> * @param materials <mask> * @param glb <mask> */ <mask> public static GLTF(meshes: Mesh[], filename: string, glb?: boolean): {[fileName: string]: string | Blob} { <mask> /** <mask> * Creates a buffer view based ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "re...
https://github.com/BabylonJS/Babylon.js/commit/70124623779b60394417435f5c4dea4759db4711
serializers/src/glTF/2.0/babylon.glTFSerializer.ts
return gltfGenerator._generateGLTF(glTFPrefix); } /** * * @param meshes * @param filename * * @returns {[fileName: string]: string | Blob} Returns an object with a .glb filename as key and data as value */ public stat...
<mask> */ <mask> function createAccessor(bufferviewIndex: number, name: string, type: string, componentType: number, count: number, min?: number[], max?: number[]): OGLTFAccessor { <mask> let accessor: OGLTFAccessor = {name: name, bufferView: bufferviewIndex, componentType: c...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/70124623779b60394417435f5c4dea4759db4711
serializers/src/glTF/2.0/babylon.glTFSerializer.ts
return gltfGenerator._generateGLB(glTFPrefix); } /** * Downloads data from glTF object. * * @param gltfData glTF object with keys being file names and values being data */ public static downloadFiles(gltfData: {[fileName: string]: string | ...
<mask> if (max) { <mask> accessor.max = max; <mask> } <mask> <mask> return accessor; <mask> } <mask> /** <mask> * Calculates the minimum and maximum values of an array of floats, based on stride <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/70124623779b60394417435f5c4dea4759db4711
serializers/src/glTF/2.0/babylon.glTFSerializer.ts
* Checks for a matching suffix at the end of a string (for ES5 and lower) * @param str * @param suffix * * @returns {boolean} indicating whether the suffix matches or not
<mask> <mask> return accessor; <mask> } <mask> /** <mask> * Calculates the minimum and maximum values of an array of floats, based on stride <mask> * @param buff <mask> * @param vertexStart <mask> * @param vertexCount...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/70124623779b60394417435f5c4dea4759db4711
serializers/src/glTF/2.0/babylon.glTFSerializer.ts
function endsWith(str: string, suffix: string): boolean { return str.indexOf(suffix, str.length - suffix.length) !== -1;
<mask> * @param vertexCount <mask> * @param arrayOffset <mask> * @param stride <mask> */ <mask> function calculateMinMax(buff: FloatArray, vertexStart: number, vertexCount: number, arrayOffset: number, stride: number): {min: number[], max: number[]...
[ "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/70124623779b60394417435f5c4dea4759db4711
serializers/src/glTF/2.0/babylon.glTFSerializer.ts
for (let key in gltfData) { let link = document.createElement('a'); document.body.appendChild(link); link.setAttribute("type", "hidden"); link.download = key; let blob = gltfData[key]; let mimeType; ...
<mask> } <mask> } <mask> return { min, max }; <mask> } <mask> /** <mask> * Write mesh attribute data to buffer. <mask> * Returns the bytelength of the data. <mask> * @param vertexBufferType <mask...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "re...
https://github.com/BabylonJS/Babylon.js/commit/70124623779b60394417435f5c4dea4759db4711
serializers/src/glTF/2.0/babylon.glTFSerializer.ts
else if (endsWith(key, ".bin")) { mimeType = {type: "application/octet-stream"};
<mask> default: { <mask> throw new Error("Unsupported vertex buffer type: " + vertexBufferType); <mask> } <mask> } <mask> <mask> return byteLength; <mask> } <mask> /** <mask> * ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "re...
https://github.com/BabylonJS/Babylon.js/commit/70124623779b60394417435f5c4dea4759db4711
serializers/src/glTF/2.0/babylon.glTFSerializer.ts
else if (endsWith(key, ".gltf")) { mimeType = {type: "model/gltf+json"};
<mask> let binPaddingView = new Uint8Array(binPaddingBuffer); <mask> for (let i = 0; i < binPadding; ++i) { <mask> binPaddingView[i] = 0; <mask> } <mask> <mask> // binary data <mask> let glbFile = new Blob([heade...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "re...
https://github.com/BabylonJS/Babylon.js/commit/70124623779b60394417435f5c4dea4759db4711
serializers/src/glTF/2.0/babylon.glTFSerializer.ts
<mask> gltf.nodes.push(node); <mask> <mask> scene.nodes.push(gltf.nodes.length - 1); <mask> } <mask> gltf.scenes.push(scene); <mask> return totalByteOffset; <mask> } <mask> <mask> let glTFPrefix = ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/70124623779b60394417435f5c4dea4759db4711
serializers/src/glTF/2.0/babylon.glTFSerializer.ts
link.href = window.URL.createObjectURL(new Blob([blob], mimeType)); link.click();
<mask> gltf.scenes.push(scene); <mask> return totalByteOffset; <mask> } <mask> <mask> let glTFPrefix = filename.replace(/\.[^/.]+$/, ""); <mask> let gltf: OGLTF = { <mask> buffers: new Array<OGLTFBuffer>(), <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep"...
https://github.com/BabylonJS/Babylon.js/commit/70124623779b60394417435f5c4dea4759db4711
serializers/src/glTF/2.0/babylon.glTFSerializer.ts
<mask> let buff: OGLTFBuffer = {byteLength: totalByteOffset}; <mask> if (!glb) { <mask> buff.uri = glTFPrefix + '.bin'; <mask> } <mask> <mask> gltf.buffers.push(buff); <mask> <mask> let text = JSON.stringify(gltf, null, 2)...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "re...
https://github.com/BabylonJS/Babylon.js/commit/70124623779b60394417435f5c4dea4759db4711
serializers/src/glTF/2.0/babylon.glTFSerializer.ts
#if defined(POINTSIZE) && !defined(WEBGPU)
<mask> vColor = instanceColor; <mask> #endif <mask> <mask> // Point size <mask> #ifdef POINTSIZE <mask> gl_PointSize = pointSize; <mask> #endif <mask> <mask> #define CUSTOM_VERTEX_MAIN_END <mask> } </s> Fix usage of gl_PointSize in WebGPU Former-commit-id: f3ed7f5203b3dedfe2dab5551bec8281f36f513b
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/703c8f0cce70b9c7abf41004c5af4c950d650ffc
materialsLibrary/src/cell/cell.vertex.fx
#if defined(POINTSIZE) && !defined(WEBGPU)
<mask> vColor = instanceColor; <mask> #endif <mask> <mask> // Point size <mask> #ifdef POINTSIZE <mask> gl_PointSize = pointSize; <mask> #endif <mask> <mask> #ifdef DIFFUSE <mask> // Fire </s> Fix usage of gl_PointSize in WebGPU Former-commit-id: f3ed7f5203b3dedfe2dab5551bec8281f36f513b </s> remove #...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/703c8f0cce70b9c7abf41004c5af4c950d650ffc
materialsLibrary/src/fire/fire.vertex.fx
#if defined(POINTSIZE) && !defined(WEBGPU)
<mask> vColor = instanceColor; <mask> #endif <mask> <mask> // Point size <mask> #ifdef POINTSIZE <mask> gl_PointSize = pointSize; <mask> #endif <mask> <mask> #define CUSTOM_VERTEX_MAIN_END <mask> } </s> Fix usage of gl_PointSize in WebGPU Former-commit-id: f3ed7f5203b3dedfe2dab5551bec8281f36f513b
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/703c8f0cce70b9c7abf41004c5af4c950d650ffc
materialsLibrary/src/fur/fur.vertex.fx
#if defined(POINTSIZE) && !defined(WEBGPU)
<mask> vColor = instanceColor; <mask> #endif <mask> <mask> // Point size <mask> #ifdef POINTSIZE <mask> gl_PointSize = pointSize; <mask> #endif <mask> <mask> #define CUSTOM_VERTEX_MAIN_END <mask> } </s> Fix usage of gl_PointSize in WebGPU Former-commit-id: f3ed7f5203b3dedfe2dab5551bec8281f36f513b
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/703c8f0cce70b9c7abf41004c5af4c950d650ffc
materialsLibrary/src/gradient/gradient.vertex.fx
#if defined(POINTSIZE) && !defined(WEBGPU)
<mask> vColor = instanceColor; <mask> #endif <mask> <mask> // Point size <mask> #ifdef POINTSIZE <mask> gl_PointSize = pointSize; <mask> #endif <mask> <mask> #define CUSTOM_VERTEX_MAIN_END <mask> } </s> Fix usage of gl_PointSize in WebGPU Former-commit-id: f3ed7f5203b3dedfe2dab5551bec8281f36f513b
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/703c8f0cce70b9c7abf41004c5af4c950d650ffc
materialsLibrary/src/lava/lava.vertex.fx
#if defined(POINTSIZE) && !defined(WEBGPU)
<mask> vColor = instanceColor; <mask> #endif <mask> <mask> // Point size <mask> #ifdef POINTSIZE <mask> gl_PointSize = pointSize; <mask> #endif <mask> <mask> #define CUSTOM_VERTEX_MAIN_END <mask> } </s> Fix usage of gl_PointSize in WebGPU Former-commit-id: f3ed7f5203b3dedfe2dab5551bec8281f36f513b
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/703c8f0cce70b9c7abf41004c5af4c950d650ffc
materialsLibrary/src/mix/mix.vertex.fx
#if defined(POINTSIZE) && !defined(WEBGPU)
<mask> #include<fogVertex> <mask> #include<shadowsVertex>[0..maxSimultaneousLights] <mask> <mask> // Point size <mask> #ifdef POINTSIZE <mask> gl_PointSize = pointSize; <mask> #endif <mask> <mask> #define CUSTOM_VERTEX_MAIN_END <mask> } </s> Fix usage of gl_PointSize in WebGPU Former-commit-id: f3ed7f5...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/703c8f0cce70b9c7abf41004c5af4c950d650ffc
materialsLibrary/src/normal/normal.vertex.fx
#if defined(POINTSIZE) && !defined(WEBGPU)
<mask> #include<fogVertex> <mask> #include<shadowsVertex>[0..maxSimultaneousLights] <mask> <mask> // Point size <mask> #ifdef POINTSIZE <mask> gl_PointSize = pointSize; <mask> #endif <mask> <mask> #define CUSTOM_VERTEX_MAIN_END <mask> } </s> Fix usage of gl_PointSize in WebGPU Former-commit-id: f3ed7f5...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/703c8f0cce70b9c7abf41004c5af4c950d650ffc
materialsLibrary/src/shadowOnly/shadowOnly.vertex.fx
#if defined(POINTSIZE) && !defined(WEBGPU)
<mask> vColor = instanceColor; <mask> #endif <mask> <mask> // Point size <mask> #ifdef POINTSIZE <mask> gl_PointSize = pointSize; <mask> #endif <mask> <mask> #define CUSTOM_VERTEX_MAIN_END <mask> } </s> Fix usage of gl_PointSize in WebGPU Former-commit-id: f3ed7f5203b3dedfe2dab5551bec8281f36f513b
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/703c8f0cce70b9c7abf41004c5af4c950d650ffc
materialsLibrary/src/simple/simple.vertex.fx
#if defined(POINTSIZE) && !defined(WEBGPU)
<mask> vColor = color; <mask> #endif <mask> <mask> // Point size <mask> #ifdef POINTSIZE <mask> gl_PointSize = pointSize; <mask> #endif <mask> <mask> #define CUSTOM_VERTEX_MAIN_END <mask> } </s> Fix usage of gl_PointSize in WebGPU Former-commit-id: f3ed7f5203b3dedfe2dab5551bec8281f36f513b </s> remove ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/703c8f0cce70b9c7abf41004c5af4c950d650ffc
materialsLibrary/src/sky/sky.vertex.fx
#if defined(POINTSIZE) && !defined(WEBGPU)
<mask> vColor = instanceColor; <mask> #endif <mask> <mask> // Point size <mask> #ifdef POINTSIZE <mask> gl_PointSize = pointSize; <mask> #endif <mask> <mask> #define CUSTOM_VERTEX_MAIN_END <mask> } </s> Fix usage of gl_PointSize in WebGPU Former-commit-id: f3ed7f5203b3dedfe2dab5551bec8281f36f513b
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/703c8f0cce70b9c7abf41004c5af4c950d650ffc
materialsLibrary/src/terrain/terrain.vertex.fx
#if defined(POINTSIZE) && !defined(WEBGPU)
<mask> vColor = instanceColor; <mask> #endif <mask> <mask> // Point size <mask> #ifdef POINTSIZE <mask> gl_PointSize = pointSize; <mask> #endif <mask> <mask> #define CUSTOM_VERTEX_MAIN_END <mask> } </s> Fix usage of gl_PointSize in WebGPU Former-commit-id: f3ed7f5203b3dedfe2dab5551bec8281f36f513b
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/703c8f0cce70b9c7abf41004c5af4c950d650ffc
materialsLibrary/src/triPlanar/triplanar.vertex.fx
#if defined(POINTSIZE) && !defined(WEBGPU)
<mask> vColor = instanceColor; <mask> #endif <mask> <mask> // Point size <mask> #ifdef POINTSIZE <mask> gl_PointSize = pointSize; <mask> #endif <mask> <mask> float finalWaveCount = 1.0 / (waveCount * 0.5); <mask> </s> Fix usage of gl_PointSize in WebGPU Former-commit-id: f3ed7f5203b3dedfe2dab5551bec...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/703c8f0cce70b9c7abf41004c5af4c950d650ffc
materialsLibrary/src/water/water.vertex.fx
#if defined(POINTSIZE) && !defined(WEBGPU)
<mask> vColor = color; <mask> #endif <mask> <mask> // Point size <mask> #ifdef POINTSIZE <mask> gl_PointSize = pointSize; <mask> #endif <mask> <mask> #define CUSTOM_VERTEX_MAIN_END <mask> } </s> Fix usage of gl_PointSize in WebGPU Former-commit-id: f3ed7f5203b3dedfe2dab5551bec8281f36f513b
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/703c8f0cce70b9c7abf41004c5af4c950d650ffc
src/Shaders/background.vertex.fx
#if defined(POINTSIZE) && !defined(WEBGPU)
<mask> vColor = instanceColor; <mask> #endif <mask> <mask> // Point size <mask> #ifdef POINTSIZE <mask> gl_PointSize = pointSize; <mask> #endif <mask> <mask> // Log. depth <mask> #include<logDepthVertex> </s> Fix usage of gl_PointSize in WebGPU Former-commit-id: f3ed7f5203b3dedfe2dab5551bec8...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/703c8f0cce70b9c7abf41004c5af4c950d650ffc
src/Shaders/pbr.vertex.fx
label: "Load", onClick: () => { this.props.globalState.onLoad.notifyObservers(); }
<mask> { <mask> label: "Save", <mask> onClick: () => { this.props.globalState.onSaveObservable.notifyObservers(); } <mask> }, { <mask> label: "Load", <mask> }...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/70533afa0a7e9fb1c1cbbb049e34520c44a32da3
guiEditor/src/components/commandBarComponent.tsx
private static _IDGenerator = 0; //private _id = FileButtonLineComponent._IDGenerator++; private uploadInputRef: React.RefObject<HTMLInputElement>;
<mask> toRight?: boolean; <mask> } <mask> <mask> export class CommandDropdownComponent extends React.Component<ICommandDropdownComponentProps, { isExpanded: boolean, activeState: string }> { <mask> <mask> public constructor(props: ICommandDropdownComponentProps) { <mask> super(props); <mask> ...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/70533afa0a7e9fb1c1cbbb049e34520c44a32da3
guiEditor/src/components/commandDropdownComponent.tsx
<input ref={this.uploadInputRef} id={"file-upload"} type="file" accept={".json"} onChange={evt => {}} />
<mask> } <mask> <div className="command-dropdown-root"> <mask> <div className={"command-dropdown" + (this.state.isExpanded ? " activated" : "")} title={this.props.tooltip} <mask> onClick={() => { <mask> this.set...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/70533afa0a7e9fb1c1cbbb049e34520c44a32da3
guiEditor/src/components/commandDropdownComponent.tsx
<mask> <mask> return this._getMSCBasisTranscoder().then(() => { <mask> const basisModule = this._mscBasisModule; <mask> <mask> const TranscodeTarget: any = basisModule.TranscodeTarget; <mask> const TextureFormat: any = basisModule.TextureFormat; <mask> co...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/717c6c8e4f0c3430b39dcd2a53ab26bee87aca56
ktx2Decoder/src/Transcoders/mscTranscoder.ts
const texFormat = src === sourceTextureFormat.UASTC4x4 ? basisModule.TextureFormat.UASTC4x4 : basisModule.TextureFormat.ETC1S;
<mask> const TextureFormat: any = basisModule.TextureFormat; <mask> const ImageInfo: any = basisModule.ImageInfo; <mask> <mask> const transcoder = src === sourceTextureFormat.UASTC4x4 ? new basisModule.UastcImageTranscoder() : new basisModule.BasisLzEtc1sImageTranscoder(); <mas...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/717c6c8e4f0c3430b39dcd2a53ab26bee87aca56
ktx2Decoder/src/Transcoders/mscTranscoder.ts
const imageInfo = new basisModule.ImageInfo(texFormat, width, height, level);
<mask> <mask> const transcoder = src === sourceTextureFormat.UASTC4x4 ? new basisModule.UastcImageTranscoder() : new basisModule.BasisLzEtc1sImageTranscoder(); <mask> const texFormat = src === sourceTextureFormat.UASTC4x4 ? TextureFormat.UASTC4x4 : TextureFormat.ETC1S; <mask> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/717c6c8e4f0c3430b39dcd2a53ab26bee87aca56
ktx2Decoder/src/Transcoders/mscTranscoder.ts
const targetFormat = basisModule.TranscodeTarget[transcodeTarget[dst]]; // works because the labels of the sourceTextureFormat enum are the same than the property names used in TranscodeTarget!
<mask> const texFormat = src === sourceTextureFormat.UASTC4x4 ? TextureFormat.UASTC4x4 : TextureFormat.ETC1S; <mask> <mask> const imageInfo = new ImageInfo(texFormat, width, height, level); <mask> <mask> const targetFormat = TranscodeTarget[transcodeTarget[dst]]; // works beca...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/717c6c8e4f0c3430b39dcd2a53ab26bee87aca56
ktx2Decoder/src/Transcoders/mscTranscoder.ts
<mask> * Camera used to simulate stereoscopic rendering (based on UniversalCamera) <mask> * @see https://doc.babylonjs.com/features/cameras <mask> */ <mask> export class StereoscopicScreenUniversalCamera extends UniversalCamera { <mask> <mask> private _dirty = true; <mask> private _distanceToProjecti...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/7244b5d1d1522ec70b0aece0dcb142ac5a23bce5
src/Cameras/Stereoscopic/stereoscopicScreenUniversalCamera.ts
<mask> private _distanceToProjectionPlane: number; <mask> private _distanceBetweenEyes: number; <mask> <mask> public set distanceBetweenEyes(newValue: number) { <mask> this._dirty = true; <mask> this._distanceBetweenEyes = newValue; <mask> } <mask> <mask> /** <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/7244b5d1d1522ec70b0aece0dcb142ac5a23bce5
src/Cameras/Stereoscopic/stereoscopicScreenUniversalCamera.ts
<mask> return this._distanceBetweenEyes; <mask> } <mask> <mask> public set distanceToProjectionPlane(newValue: number) { <mask> this._dirty = true; <mask> this._distanceToProjectionPlane = newValue; <mask> } <mask> <mask> /** <mask> * Distance to projection plane...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/7244b5d1d1522ec70b0aece0dcb142ac5a23bce5
src/Cameras/Stereoscopic/stereoscopicScreenUniversalCamera.ts
constructor(name: string, position: Vector3, scene: Scene, _distanceToProjectionPlane: number = 1, distanceBetweenEyes: number = 0.065) {
<mask> * @param scene defines the hosting scene <mask> * @param _distanceToProjectionPlane defines distance between each color axis <mask> * @param distanceBetweenEyes defines is stereoscopic is done side by side or over under <mask> */ <mask> constructor(name: string, position: Vector3, sc...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/7244b5d1d1522ec70b0aece0dcb142ac5a23bce5
src/Cameras/Stereoscopic/stereoscopicScreenUniversalCamera.ts
const transform = new TransformNode('tm_' + name, this.getScene());
<mask> * @hidden <mask> */ <mask> public createRigCamera(name: string, cameraIndex: number): Nullable<Camera> { <mask> const camera = new TargetCamera(name, Vector3.Zero(), this.getScene()); <mask> const transform = new TransformNode('tm' + name, this.getScene()); <mask> came...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/7244b5d1d1522ec70b0aece0dcb142ac5a23bce5
src/Cameras/Stereoscopic/stereoscopicScreenUniversalCamera.ts
for (let cameraIndex = 0; cameraIndex < this._rigCameras.length; cameraIndex++) { this._updateCamera(this._rigCameras[cameraIndex] as TargetCamera, cameraIndex);
<mask> * @hidden <mask> */ <mask> public _updateRigCameras() { <mask> super._updateRigCameras(); <mask> if (this._dirty) { <mask> for (let cameraIndex = 0; cameraIndex < this._rigCameras.length; cameraIndex++) { <mask> this._updateCamera(this._rigCameras[...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/7244b5d1d1522ec70b0aece0dcb142ac5a23bce5
src/Cameras/Stereoscopic/stereoscopicScreenUniversalCamera.ts
const b = this.distanceBetweenEyes / 2;
<mask> } <mask> } <mask> <mask> private _updateCamera(camera: TargetCamera, cameraIndex: number) { <mask> const b = cameraIndex === 0 ? this.distanceBetweenEyes : -this.distanceBetweenEyes; <mask> const z = b / this.distanceToProjectionPlane; <mask> camera.position.set(-b...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/7244b5d1d1522ec70b0aece0dcb142ac5a23bce5
src/Cameras/Stereoscopic/stereoscopicScreenUniversalCamera.ts
camera.position.set((cameraIndex === 0 ? -b : b), 0, 0); camera.target.copyFromFloats((cameraIndex === 0 ? b : -b), 0, 0);
<mask> <mask> private _updateCamera(camera: TargetCamera, cameraIndex: number) { <mask> const b = cameraIndex === 0 ? this.distanceBetweenEyes : -this.distanceBetweenEyes; <mask> const z = b / this.distanceToProjectionPlane; <mask> camera.position.set(-b, 0, -this.distanceToProjectionP...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/7244b5d1d1522ec70b0aece0dcb142ac5a23bce5
src/Cameras/Stereoscopic/stereoscopicScreenUniversalCamera.ts
m.setTranslationFromFloats((cameraIndex === 0 ? b : -b), 0, 0); m.setRowFromFloats(2, (cameraIndex === 0 ? z : -z), 0, 1, 0); transform.setPivotMatrix(m, false);
<mask> camera.position.set(-b, 0, -this.distanceToProjectionPlane); <mask> camera.setTarget(new Vector3(-b, 0, 0)); <mask> const transform = camera.parent as TransformNode; <mask> const m = transform.getPivotMatrix(); <mask> m.setTranslationFromFloats(b, 0, 0); <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/7244b5d1d1522ec70b0aece0dcb142ac5a23bce5
src/Cameras/Stereoscopic/stereoscopicScreenUniversalCamera.ts
// Window size settings var drawerMaxRows: number = options.swatchLimit / options.numSwatchesPerLine; var drawerMaxSize: number = ((options.swatchSize * 1.5) * drawerMaxRows) + (options.swatchSize / 4); var containerSize: string = (parseInt(options.pickerHeight) + draw...
<mask> options.swatchSize = options.swatchSize || 40; <mask> options.numSwatchesPerLine = options.numSwatchesPerLine || 10; <mask> <mask> // Button Colors <mask> var buttonBackgroundColor = "#535353"; <mask> var buttonBackgroundHoverColor = "#414141"; ...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/72fe59c2e479483872939f5d391cc3f61d8026d1
gui/src/2D/controls/colorpicker.ts
var butEdit: Button;
<mask> var buttonDisabledColor = "#555555"; <mask> var buttonDisabledBackgroundColor = "#454545"; <mask> var buttonFontSize = 16; <mask> <mask> // Stroke Colors <mask> var darkStrokeColor = "#404040"; <mask> var lightStrokeColor = "#c0c0c0"...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/72fe59c2e479483872939f5d391cc3f61d8026d1
gui/src/2D/controls/colorpicker.ts
function UpdateValues(value: Color3, inputField: string) { console.log("activeField: " + activeField); activeField = inputField;
<mask> * Will update all values for InputText and ColorPicker controls based on the BABYLON.Color3 passed to this function. <mask> * Each InputText control and the ColorPicker control will be tested to see if they are the activeField and if they <mask> * are will receive no update...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/72fe59c2e479483872939f5d391cc3f61d8026d1
gui/src/2D/controls/colorpicker.ts
UpdateValues(new BABYLON.Color3((parseInt(newValue)) / 255, newSwatchRGB.g, newSwatchRGB.b), field.name);
<mask> field.text = newValue; <mask> var newSwatchRGB = BABYLON.Color3.FromHexString(newSwatch.background); <mask> if (activeField == field.name) { <mask> if (channel == "r") { <mask> UpdateValues(new BA...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/72fe59c2e479483872939f5d391cc3f61d8026d1
gui/src/2D/controls/colorpicker.ts
UpdateValues(new BABYLON.Color3(newSwatchRGB.r, (parseInt(newValue)) / 255, newSwatchRGB.b), field.name);
<mask> if (channel == "r") { <mask> UpdateValues(new BABYLON.Color3((parseInt(newValue)) / 255, newSwatchRGB.g, newSwatchRGB.b)); <mask> } <mask> else if (channel == "g") { <mask> UpdateV...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/72fe59c2e479483872939f5d391cc3f61d8026d1
gui/src/2D/controls/colorpicker.ts
UpdateValues(new BABYLON.Color3(newSwatchRGB.r, newSwatchRGB.g, (parseInt(newValue)) / 255), field.name);
<mask> else if (channel == "g") { <mask> UpdateValues(new BABYLON.Color3(newSwatchRGB.r, (parseInt(newValue)) / 255, newSwatchRGB.b)); <mask> } <mask> else { <mask> UpdateValues(new BABYL...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/72fe59c2e479483872939f5d391cc3f61d8026d1
gui/src/2D/controls/colorpicker.ts
UpdateValues(new BABYLON.Color3(parseFloat(newValue), newSwatchRGB.g, newSwatchRGB.b), field.name);
<mask> field.text = newValue; <mask> var newSwatchRGB = BABYLON.Color3.FromHexString(newSwatch.background); <mask> if (activeField == field.name) { <mask> if (channel == "r") { <mask> UpdateValues(new BA...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/72fe59c2e479483872939f5d391cc3f61d8026d1
gui/src/2D/controls/colorpicker.ts
UpdateValues(new BABYLON.Color3(newSwatchRGB.r, parseFloat(newValue), newSwatchRGB.b), field.name);
<mask> if (channel == "r") { <mask> UpdateValues(new BABYLON.Color3(parseFloat(newValue), newSwatchRGB.g, newSwatchRGB.b)); <mask> } <mask> else if (channel == "g") { <mask> UpdateValues(...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/72fe59c2e479483872939f5d391cc3f61d8026d1
gui/src/2D/controls/colorpicker.ts
UpdateValues(new BABYLON.Color3(newSwatchRGB.r, newSwatchRGB.g, parseFloat(newValue)), field.name);
<mask> else if (channel == "g") { <mask> UpdateValues(new BABYLON.Color3(newSwatchRGB.r, parseFloat(newValue), newSwatchRGB.b)); <mask> } <mask> else { <mask> UpdateValues(new BABYLON.Col...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/72fe59c2e479483872939f5d391cc3f61d8026d1
gui/src/2D/controls/colorpicker.ts
<mask> } <mask> } <mask> } <mask> <mask> // Called when the user hits the limit of saved colors in the drawer. <mask> function DisableButton(button: Button) { <mask> button.color = buttonDisabledColor; <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/72fe59c2e479483872939f5d391cc3f61d8026d1
gui/src/2D/controls/colorpicker.ts
if (options.savedColors && options.savedColors.length == 0) { setEditButtonVisibility(false); editSwatchMode = false; }
<mask> if (options.savedColors) { <mask> options.savedColors.splice(index, 1); <mask> } <mask> } <mask> <mask> // Creates and styles an individual swatch when UpdateSwatches is called. <mask> function CreateSwatch() { </s> ...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/72fe59c2e479483872939f5d391cc3f61d8026d1
gui/src/2D/controls/colorpicker.ts
UpdateValues(BABYLON.Color3.FromHexString(options.savedColors[metadata]), swatch.name!);
<mask> }; <mask> swatch.onPointerClickObservable.add(() => { <mask> if (!editSwatchMode) { <mask> if (options.savedColors) { <mask> UpdateValues(BABYLON.Color3.FromHexString(options.savedColo...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/72fe59c2e479483872939f5d391cc3f61d8026d1
gui/src/2D/controls/colorpicker.ts
<mask> return null; <mask> } <mask> } <mask> <mask> function UpdateDialogSize(gridControl: Grid) { <mask> // Update diaogue container sizes <mask> if (gridControl.rowCount > 1) { <mask> gridControl.h...
[ "keep", "keep", "keep", "keep", "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/72fe59c2e479483872939f5d391cc3f61d8026d1
gui/src/2D/controls/colorpicker.ts
<mask> * saved colors there are and how many can be stored on one row. <mask> */ <mask> function UpdateSwatches(color: string, button: Button) { <mask> if (options.savedColors) { <mask> // if (!swatchDrawerOpen) { <mask> ...
[ "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/72fe59c2e479483872939f5d391cc3f61d8026d1
gui/src/2D/controls/colorpicker.ts
<mask> } <mask> if (options.savedColors.length >= options.swatchLimit!) { <mask> DisableButton(button); <mask> } <mask> UpdateDialogSize(dialogContainer); <mask> dialogContainer.addControl(s...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/72fe59c2e479483872939f5d391cc3f61d8026d1
gui/src/2D/controls/colorpicker.ts