docstring_tokens stringlengths 0 76.5k | code_tokens stringlengths 75 1.81M | label_window listlengths 4 2.12k | html_url stringlengths 74 116 | file_name stringlengths 3 311 |
|---|---|---|---|---|
public setPivotPoint(point: Vector3, space: Space = Space.LOCAL): AbstractMesh {
| <mask> Vector3.TransformNormalToRef(localAxis, this.getWorldMatrix(), result);
<mask> return this;
<mask> }
<mask>
<mask> public setPivotPoint(point:Vector3, space:Space = Space.LOCAL): AbstractMesh {
<mask>
<mask> if(this.getScene().getRenderId() == 0){
<ma... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e06ed03540a7ce211e254652356b3f31baf371ff | src/Mesh/babylon.abstractMesh.ts |
if (this.getScene().getRenderId() == 0) {
| <mask> }
<mask>
<mask> public setPivotPoint(point:Vector3, space:Space = Space.LOCAL): AbstractMesh {
<mask>
<mask> if(this.getScene().getRenderId() == 0){
<mask> this.computeWorldMatrix(true);
<mask> }
<mask>
<mask> var wm = this.getWorldM... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e06ed03540a7ce211e254652356b3f31baf371ff | src/Mesh/babylon.abstractMesh.ts |
public getPivotPointToRef(result: Vector3): AbstractMesh {
| <mask> /**
<mask> * Sets the passed Vector3 "result" with the coordinates of the mesh pivot point in the local space.
<mask> * Returns the AbstractMesh.
<mask> */
<mask> public getPivotPointToRef(result:Vector3): AbstractMesh{
<mask> result.x = -this._p... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e06ed03540a7ce211e254652356b3f31baf371ff | src/Mesh/babylon.abstractMesh.ts |
public setParent(mesh: AbstractMesh): AbstractMesh {
| <mask> /**
<mask> * Defines the passed mesh as the parent of the current mesh.
<mask> * Returns the AbstractMesh.
<mask> */
<mask> public setParent(mesh:AbstractMesh): AbstractMesh {
<mask>
<mask> var child = this;
<mask> var pa... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e06ed03540a7ce211e254652356b3f31baf371ff | src/Mesh/babylon.abstractMesh.ts |
if (mesh == null) {
| <mask>
<mask> var child = this;
<mask> var parent = mesh;
<mask>
<mask> if(mesh == null){
<mask>
<mask> var rotation = Tmp.Quaternion[0];
<mask> var position = Tmp.Vector3[0];
<mask> var scale = Tmp.Vector3[1];
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e06ed03540a7ce211e254652356b3f31baf371ff | src/Mesh/babylon.abstractMesh.ts |
public addChild(mesh: AbstractMesh): AbstractMesh {
| <mask> /**
<mask> * Adds the passed mesh as a child to the current mesh.
<mask> * Returns the AbstractMesh.
<mask> */
<mask> public addChild(mesh:AbstractMesh): AbstractMesh {
<mask> mesh.setParent(this);
<mask> return this;
<mask> }... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e06ed03540a7ce211e254652356b3f31baf371ff | src/Mesh/babylon.abstractMesh.ts |
public removeChild(mesh: AbstractMesh): AbstractMesh {
| <mask> /**
<mask> * Removes the passed mesh from the current mesh children list.
<mask> * Returns the AbstractMesh.
<mask> */
<mask> public removeChild(mesh:AbstractMesh): AbstractMesh {
<mask> mesh.setParent(null);
<mask> return this;
<mask... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e06ed03540a7ce211e254652356b3f31baf371ff | src/Mesh/babylon.abstractMesh.ts |
public getAbsolutePivotPointToRef(result: Vector3): AbstractMesh {
| <mask> /**
<mask> * Sets the Vector3 "result" coordinates with the mesh pivot point World coordinates.
<mask> * Returns the AbstractMesh.
<mask> */
<mask> public getAbsolutePivotPointToRef(result:Vector3): AbstractMesh {
<mask> result.x = this._pivotMatri... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e06ed03540a7ce211e254652356b3f31baf371ff | src/Mesh/babylon.abstractMesh.ts |
// Facet data
| <mask> Vector3.TransformCoordinatesToRef(result, this.getWorldMatrix(), result);
<mask> return this;
<mask> }
<mask>
<mask> // Facet data
<mask> /**
<mask> * Initialize the facet data arrays : facetNormals, facetPositions and facetPartitioning.
<mask... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e06ed03540a7ce211e254652356b3f31baf371ff | src/Mesh/babylon.abstractMesh.ts |
if (!checkFace || (checkFace && facing && d >= 0.0) || (checkFace && !facing && d <= 0.0)) {
| <mask> norm = facetNormals[fib];
<mask> p0 = facetPositions[fib];
<mask>
<mask> d = (x - p0.x) * norm.x + (y - p0.y) * norm.y + (z - p0.z) * norm.z;
<mask> if ( !checkFace || (checkFace && facing && d >= 0.0) || (checkFace && !facing && d <= 0.0) ) {... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e06ed03540a7ce211e254652356b3f31baf371ff | src/Mesh/babylon.abstractMesh.ts |
if (this.occlusionType !== AbstractMesh.OCCLUSION_TYPE_NO_VALUE) {
console.log("Enter Draw");
this._gl.beginQuery(this._gl.ANY_SAMPLES_PASSED, this.occlusionQuery);
this._processRendering(subMesh, effect, fillMode, batch, hardwareInstancedRendering, this._o... | <mask> effectiveMaterial.bind(world, this);
<mask> }
<mask>
<mask> // Draw
<mask> this._processRendering(subMesh, effect, fillMode, batch, hardwareInstancedRendering, this._onBeforeDraw, effectiveMaterial);
<mask>
<mask> // Unbind
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e06ed03540a7ce211e254652356b3f31baf371ff | src/Mesh/babylon.mesh.ts |
this.instances.forEach(instance => {
| <mask> else {
<mask> this._delayLoadingFunction(JSON.parse(data), this);
<mask> }
<mask>
<mask> this.instances.forEach(instance =>
<mask> {
<mask> instance._syncSubMeshes();
<mask> });
<mask... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e06ed03540a7ce211e254652356b3f31baf371ff | src/Mesh/babylon.mesh.ts |
while (this.geometry.isVerticesDataPresent(VertexBuffer.PositionKind + index)) {
| <mask> } else {
<mask> var index = 0;
<mask>
<mask> // Positions
<mask> while (this.geometry.isVerticesDataPresent(VertexBuffer.PositionKind + index))
<mask> {
<mask> this.geometry.removeVerticesData(... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e06ed03540a7ce211e254652356b3f31baf371ff | src/Mesh/babylon.mesh.ts |
if (this.geometry.isVerticesDataPresent(VertexBuffer.NormalKind + index)) {
| <mask> // Positions
<mask> while (this.geometry.isVerticesDataPresent(VertexBuffer.PositionKind + index))
<mask> {
<mask> this.geometry.removeVerticesData(VertexBuffer.PositionKind + index);
<mask>
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e06ed03540a7ce211e254652356b3f31baf371ff | src/Mesh/babylon.mesh.ts |
if (this.geometry.isVerticesDataPresent(VertexBuffer.TangentKind + index)) {
| <mask> if (this.geometry.isVerticesDataPresent(VertexBuffer.NormalKind + index))
<mask> {
<mask> this.geometry.removeVerticesData(VertexBuffer.NormalKind + index);
<mask> }
<mask> if (this.geometry.isVerticesDat... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e06ed03540a7ce211e254652356b3f31baf371ff | src/Mesh/babylon.mesh.ts |
var mesh: Mesh;
| <mask> * The parameter `parsedMesh` is the mesh to be copied.
<mask> * The parameter `rootUrl` is a string, it's the root URL to prefix the `delayLoadingFile` property with
<mask> */
<mask> public static Parse(parsedMesh: any, scene: Scene, rootUrl: string): Mesh {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e06ed03540a7ce211e254652356b3f31baf371ff | src/Mesh/babylon.mesh.ts |
}
| <mask> updatable: updatable,
<mask> sideOrientation: sideOrientation
<mask> }
<mask> return MeshBuilder.CreatePolygon(name, options, scene);
<mask> }
<mask>
<mask> /**
<mask> * Creates an extruded polygon mesh, with depth in the Y direct... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e06ed03540a7ce211e254652356b3f31baf371ff | src/Mesh/babylon.mesh.ts |
/**
* Creates an extruded polygon mesh, with depth in the Y direction.
* Please consider using the same method from the MeshBuilder class instead.
*/
| <mask> }
<mask> return MeshBuilder.CreatePolygon(name, options, scene);
<mask> }
<mask>
<mask> /**
<mask> * Creates an extruded polygon mesh, with depth in the Y direction.
<mask> * Please consider using the same method from the MeshBuilder class instead.
<m... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e06ed03540a7ce211e254652356b3f31baf371ff | src/Mesh/babylon.mesh.ts |
}
| <mask> updatable: updatable,
<mask> sideOrientation: sideOrientation
<mask> }
<mask> return MeshBuilder.ExtrudePolygon(name, options, scene);
<mask> }
<mask>
<mask> /**
<mask> * Creates an extruded shape mesh.
<mask> * The... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e06ed03540a7ce211e254652356b3f31baf371ff | src/Mesh/babylon.mesh.ts |
// Occlusion Query
createQuery(): WebGLQuery;
beginQuery(target: number, query: WebGLQuery);
endQuery(target: number): void;
getQueryParameter(query: WebGLQuery, pname: number): any;
| <mask> uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: number, uniformBlockBinding: number): void;
<mask>
<mask> MAX_SAMPLES: number;
<mask> RGBA8: number;
<mask> READ_FRAMEBUFFER: number;
<mask> DRAW_FRAMEBUFFER: number;
<mask> UNIFORM_BUFFER: number;
<mask>
</s> Adding... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e06ed03540a7ce211e254652356b3f31baf371ff | src/babylon.mixins.ts |
// Occlusion Query
ANY_SAMPLES_PASSED_CONSERVATIVE: number;
ANY_SAMPLES_PASSED: number;
QUERY_RESULT_AVAILABLE: number;
QUERY_RESULT: number;
| <mask> readonly COLOR_ATTACHMENT0: number; // 0x8CE1
<mask> readonly COLOR_ATTACHMENT1: number; // 0x8CE2
<mask> readonly COLOR_ATTACHMENT2: number; // 0x8CE3
<mask> readonly COLOR_ATTACHMENT3: number; ... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e06ed03540a7ce211e254652356b3f31baf371ff | src/babylon.mixins.ts |
import { PrePassConfiguration } from "../prePassConfiguration";
| <mask> import { IMaterialAnisotropicDefines, PBRAnisotropicConfiguration } from "./pbrAnisotropicConfiguration";
<mask> import { IMaterialBRDFDefines, PBRBRDFConfiguration } from "./pbrBRDFConfiguration";
<mask> import { IMaterialSheenDefines, PBRSheenConfiguration } from "./pbrSheenConfiguration";
<mask> import { ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e08768299db462df5be5213c493f706f9cfac9c3 | src/Materials/PBR/pbrBaseMaterial.ts |
* @param prePassConfiguration Configuration for the prepass, in case prepass is activated
| <mask> * Binds the bones information from the mesh to the effect.
<mask> * @param mesh The mesh we are binding the information to render
<mask> * @param effect The effect we are binding the data to
<mask> */
<mask> public static BindBonesParameters(mesh?: AbstractMesh, effect?: Effect, preP... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e08768299db462df5be5213c493f706f9cfac9c3 | src/Materials/materialHelper.ts |
/**
* Configuration needed for prepass-capable materials
*/
| <mask> import { Constants } from "../Engines/constants";
<mask>
<mask> export class PrePassConfiguration {
<mask> /**
<mask> * Previous world matrices of meshes carrying this material
<mask> * Used for computing velocity
<mask> */
<mask> public previousWorldMatrices: { [index: number]: M... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e08768299db462df5be5213c493f706f9cfac9c3 | src/Materials/prePassConfiguration.ts |
/**
* Previous world matrices of meshes carrying this material
* Used for computing velocity
*/
| <mask> */
<mask> export class PrePassConfiguration {
<mask> public previousWorldMatrices: { [index: number]: Matrix } = {};
<mask> /**
<mask> * Previous view project matrix
<mask> * Used for computing velocity
<mask> */
</s> linting and doc
Former-commit-id: e518c8caff0d610d6119681951b... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e08768299db462df5be5213c493f706f9cfac9c3 | src/Materials/prePassConfiguration.ts |
/**
* Previous view project matrix
* Used for computing velocity
*/
| <mask> */
<mask> public previousWorldMatrices: { [index: number]: Matrix } = {};
<mask> public previousViewProjection: Matrix;
<mask> /**
<mask> * Previous bones of meshes carrying this material
<mask> * Used for computing velocity
<mask> */
</s> linting and doc
Former-commit-i... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e08768299db462df5be5213c493f706f9cfac9c3 | src/Materials/prePassConfiguration.ts |
/**
* Previous bones of meshes carrying this material
* Used for computing velocity
*/
| <mask> */
<mask> public previousViewProjection: Matrix;
<mask> public previousBones: { [index: number]: Float32Array } = {};
<mask>
<mask> /**
<mask> * Add the required uniforms to the current list.
<mask> * @param uniforms defines the current uniform list.
<mask> */
</s> linti... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e08768299db462df5be5213c493f706f9cfac9c3 | src/Materials/prePassConfiguration.ts |
* @param mesh The mesh
* @param world World matrix of this mesh
* @param isFrozen Is the material frozen
| <mask> * Binds the material data.
<mask> * @param effect defines theeffect to update
<mask> * @param scene defines the scene the material belongs to.
<mask> */
<mask> public bindForSubMesh(effect: Effect, scene: Scene, mesh: Mesh, world: Matrix, isFrozen: boolean): void {
<mask> if... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e08768299db462df5be5213c493f706f9cfac9c3 | src/Materials/prePassConfiguration.ts |
import { PrePassConfiguration } from "./prePassConfiguration";
| <mask> import { VertexBuffer } from "../Meshes/buffer";
<mask> import { SubMesh } from "../Meshes/subMesh";
<mask> import { AbstractMesh } from "../Meshes/abstractMesh";
<mask> import { Mesh } from "../Meshes/mesh";
<mask> import { PrePassConfiguration } from "./PrePassConfiguration";
<mask>
<mask> import { Ima... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e08768299db462df5be5213c493f706f9cfac9c3 | src/Materials/standardMaterial.ts |
} else {
| <mask>
<mask> effect.setTexture("normalSampler", geometryBufferRenderer.getGBuffer().textures[1]);
<mask> effect.setTexture("positionSampler", geometryBufferRenderer.getGBuffer().textures[positionIndex]);
<mask> effect.setTexture("reflectivitySampler", geometryBuffer... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e08768299db462df5be5213c493f706f9cfac9c3 | src/PostProcesses/screenSpaceReflectionPostProcess.ts |
<mask> {
<mask> "compilerOptions": {
<mask> "target": "es5",
<mask> "module": "commonjs",
<mask> "noResolve": false,
<mask> "noImplicitAny": false,
<mask> "strictNullChecks": true,
<mask> "removeComments": false,
<mask> "preserveConstEnums": true,
<m... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e1704bf4a3b683ac086a9d668049fc1f8ffbfb82 | Viewer/tsconfig-gulp.json | |
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"moduleResolution": "node",
"strictNullChecks": true,
"noImplicitAny": false,
"noFallthroughCasesInSwitch": true,
"inlineSourceMap": true,
| <mask> "module": "commonjs",
<mask> "declaration": true,
<mask> "lib": [
<mask> "es5",
<mask> "dom",
<mask> "es2015.promise",
</s> fixing gulp build
Former-commit-id: a2fbc6aa9f6f645fb5af47fdc1efdcc1ad6d5e8a </s> remove "noResolve": false,
... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e1704bf4a3b683ac086a9d668049fc1f8ffbfb82 | Viewer/tsconfig-gulp.json |
"es5",
| <mask> "noFallthroughCasesInSwitch": true,
<mask> "inlineSourceMap": true,
<mask> "lib": [
<mask> "dom",
<mask> "es2015.promise",
<mask> "es2015.collection",
<mask> "es2015.iterable"
</s> fixing gulp build
Former-commit-id: a2fbc6aa9f6f64... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e1704bf4a3b683ac086a9d668049fc1f8ffbfb82 | Viewer/tsconfig-gulp.json |
"es2015.collection",
"es2015.iterable"
| <mask> "declaration": true,
<mask> "lib": [
<mask> "dom",
<mask> "es2015.promise",
<mask> "es5"
<mask> ],
<mask> "types": [
<mask> "node"
<mask> ],
<mask> "baseUrl": "./",
<mask> "paths": {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e1704bf4a3b683ac086a9d668049fc1f8ffbfb82 | Viewer/tsconfig-gulp.json |
"skipDefaultLibCheck": true,
"skipLibCheck": true,
"baseUrl": "./src/",
"rootDir": "./",
| <mask> ],
<mask> "types": [
<mask> "node"
<mask> ],
<mask> "baseUrl": "./",
<mask> "paths": {
<mask> "babylonjs": [
<mask> "../dist/preview release/babylon.d.ts"
<mask> ],
<mask> "babylonjs-loaders": [
</s... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e1704bf4a3b683ac086a9d668049fc1f8ffbfb82 | Viewer/tsconfig-gulp.json |
"../../dist/preview release/babylon.d.ts"
| <mask> ],
<mask> "baseUrl": "./",
<mask> "paths": {
<mask> "babylonjs": [
<mask> "../dist/preview release/babylon.d.ts"
<mask> ],
<mask> "babylonjs-loaders": [
<mask> "externalModules.d.ts"
<mask> ]
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e1704bf4a3b683ac086a9d668049fc1f8ffbfb82 | Viewer/tsconfig-gulp.json |
],
"babylonjs-gltf2interface": [
"../../dist/babylon.glTF2Interface.d.ts"
],
"deepmerge": [
"./helper/deepmerge.d.ts"
],
"handlebars": [
"./templates/handlebars.d.ts"
| <mask> "../../dist/preview release/babylon.d.ts"
<mask> ],
<mask> "babylonjs-loaders": [
<mask> "externalModules.d.ts"
<mask> ]
<mask> },
<mask> "outDir": "./dist/build"
<mask> },
</s> fixing gulp build
Former-commit-id: ... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e1704bf4a3b683ac086a9d668049fc1f8ffbfb82 | Viewer/tsconfig-gulp.json |
},
"outDir": "./dist/build"
| <mask> ],
<mask> "babylonjs-loaders": [
<mask> "externalModules.d.ts"
<mask> ]
<mask> }
<mask> },
<mask> "exclude": [
<mask> "node_modules",
<mask> "dist",
<mask> "tests"
</s> fixing gulp build
Former-commit-id: a2f... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e1704bf4a3b683ac086a9d668049fc1f8ffbfb82 | Viewer/tsconfig-gulp.json |
<mask> },
<mask> externals: {
<mask> cannon: 'CANNON',
<mask> oimo: 'OIMO',
<mask> vertx: true,
<mask> "./Oimo": "OIMO",
<mask> "earcut": true
<mask> },
<mask> resolve: {
<mask> extensions: ['.ts', '.js'],
<mask> alias: {
</s> fixing gu... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e1704bf4a3b683ac086a9d668049fc1f8ffbfb82 | Viewer/webpack.gulp.config.js | |
"babylonjs-loaders": __dirname + '/../dist/preview release/loaders/babylonjs.loaders.js'
| <mask> extensions: ['.ts', '.js'],
<mask> alias: {
<mask> "babylonjs": __dirname + '/../dist/preview release/babylon.max.js',
<mask> "babylonjs-materials": __dirname + '/../dist/preview release/materialsLibrary/babylonjs.materials.js',
<mask> "babylonjs-loaders":... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e1704bf4a3b683ac086a9d668049fc1f8ffbfb82 | Viewer/webpack.gulp.config.js |
/**
* Represents a physics imposter
*/
| <mask> */
<mask> getClassName(): string;
<mask> }
<mask>
<mask> export class PhysicsImpostor {
<mask>
<mask> /**
<mask> * The default object size of the imposter
</s> docs for physics classes
Former-commit-id: c17a3ae6889d67a4330cc7eb438d5933052003c9 | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e3cacf91fb2fa970ec30696ca9cb2d3cc4663e7b | src/Physics/babylon.physicsImpostor.ts |
/**
* Gets the box size of the physics imposter and stores the result in the input parameter
* @param result Stores the box size
* @returns The physics imposter
*/
| <mask> }
<mask>
<mask> public getBoxSizeToRef(result: Vector3): PhysicsImpostor {
<mask> if (this._physicsEngine) {
<mask> this._physicsEngine.getPhysicsPlugin().getBoxSizeToRef(this, result);
<mask> }
</s> docs for physics classes
Former-commit-id: c17a... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e3cacf91fb2fa970ec30696ca9cb2d3cc4663e7b | src/Physics/babylon.physicsImpostor.ts |
/**
* Lock-Joint type
*/
| <mask> * Spring-Joint type
<mask> */
<mask> public static SpringJoint = 9;
<mask> public static LockJoint = 10;
<mask> }
<mask>
<mask> /**
<mask> * A class representing a physics distance joint.
<mask> */
</s> docs for physics classes
Former-commit-id: c1... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e3cacf91fb2fa970ec30696ca9cb2d3cc4663e7b | src/Physics/babylon.physicsJoint.ts |
"@babylonjs/core": "^5.34.0", | <mask> "packages/public/@babylonjs/node-editor": {
<mask> "version": "5.33.2",
<mask> "license": "Apache-2.0",
<mask> "devDependencies": {
<mask> "@babylonjs/core": "^5.33.2",
<mask> "react": "^17.0.2",
<mask> "react-dom"... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e6af98a436c8441c6c00e09a340e52e580cff21e | package-lock.json |
"@babylonjs/core": "^5.34.0", | <mask> },
<mask> "@babylonjs/loaders": {
<mask> "version": "file:packages/public/@babylonjs/loaders",
<mask> "requires": {
<mask> "@babylonjs/core": "^5.33.2",
<mask> "@dev/build-tools": "^1.0.0",
<mask> "@lts/loaders": "^1.0... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e6af98a436c8441c6c00e09a340e52e580cff21e | package-lock.json |
"version": "5.34.0", | <mask> {
<mask> "name": "@babylonjs/inspector",
<mask> "version": "5.33.2",
<mask> "module": "dist/babylon.inspector.bundle.max.js",
<mask> "main": "dist/babylon.inspector.bundle.max.js",
<mask> "typings": "dist/babylon.inspector.module.d.ts",
<mask> "files": [
<mask> "dist/**/*.... | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e6af98a436c8441c6c00e09a340e52e580cff21e | packages/public/@babylonjs/inspector/package.json |
"babylonjs": "^5.34.0" | <mask> "build:declaration": "build-tools -c pud --config ./config.json",
<mask> "clean": "rimraf dist && rimraf babylon*.*"
<mask> },
<mask> "dependencies": {
<mask> "babylonjs": "^5.33.2"
<mask> },
<mask> "devDependencies": {
<mask> "@dev/build-tools": "1.0.0",
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e6af98a436c8441c6c00e09a340e52e580cff21e | packages/public/umd/babylonjs-post-process/package.json |
"version": "5.34.0", | <mask> {
<mask> "name": "babylonjs-procedural-textures",
<mask> "version": "5.33.2",
<mask> "main": "babylonjs.proceduralTextures.js",
<mask> "types": "babylonjs.proceduralTextures.module.d.ts",
<mask> "files": [
<mask> "*"
<mask> ],
</s> Version update 5.34.0
Former-commit-id... | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e6af98a436c8441c6c00e09a340e52e580cff21e | packages/public/umd/babylonjs-procedural-textures/package.json |
"babylonjs": "^5.34.0" | <mask> "build:declaration": "build-tools -c pud --config ./config.json",
<mask> "clean": "rimraf dist && rimraf babylon*.*"
<mask> },
<mask> "dependencies": {
<mask> "babylonjs": "^5.33.2"
<mask> },
<mask> "devDependencies": {
<mask> "@dev/build-tools": "1.0.0",
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e6af98a436c8441c6c00e09a340e52e580cff21e | packages/public/umd/babylonjs-procedural-textures/package.json |
"version": "5.34.0", | <mask> {
<mask> "name": "babylonjs-serializers",
<mask> "version": "5.33.2",
<mask> "main": "babylonjs.serializers.js",
<mask> "types": "babylonjs.serializers.module.d.ts",
<mask> "files": [
<mask> "*"
<mask> ],
</s> Version update 5.34.0
Former-commit-id: 42f3ca5c939b27664c01... | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e6af98a436c8441c6c00e09a340e52e580cff21e | packages/public/umd/babylonjs-serializers/package.json |
"babylonjs": "^5.34.0",
"babylonjs-gltf2interface": "^5.34.0" | <mask> "build:declaration": "build-tools -c pud --config ./config.json",
<mask> "clean": "rimraf dist && rimraf babylon*.*"
<mask> },
<mask> "dependencies": {
<mask> "babylonjs": "^5.33.2",
<mask> "babylonjs-gltf2interface": "^5.33.2"
<mask> },
<mask> "devDependen... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e6af98a436c8441c6c00e09a340e52e580cff21e | packages/public/umd/babylonjs-serializers/package.json |
"version": "5.34.0", | <mask> {
<mask> "name": "babylonjs-viewer",
<mask> "version": "5.33.2",
<mask> "main": "babylon.viewer.js",
<mask> "types": "babylon.viewer.module.d.ts",
<mask> "files": [
<mask> "*"
<mask> ],
</s> Version update 5.34.0
Former-commit-id: 42f3ca5c939b27664c01b9ca3f49e81fd664d2d... | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e6af98a436c8441c6c00e09a340e52e580cff21e | packages/public/umd/babylonjs-viewer/package.json |
"babylonjs-gltf2interface": "^5.34.0" | <mask> "build:declaration": "build-tools -c pud --config ./config.json",
<mask> "clean": "rimraf dist && rimraf babylon*.*"
<mask> },
<mask> "dependencies": {
<mask> "babylonjs-gltf2interface": "^5.33.2"
<mask> },
<mask> "devDependencies": {
<mask> "@dev/build-too... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e6af98a436c8441c6c00e09a340e52e580cff21e | packages/public/umd/babylonjs-viewer/package.json |
"version": "5.34.0", | <mask> {
<mask> "name": "babylonjs",
<mask> "version": "5.33.2",
<mask> "main": "babylon.js",
<mask> "types": "babylon.module.d.ts",
<mask> "files": [
<mask> "*"
<mask> ],
</s> Version update 5.34.0
Former-commit-id: 42f3ca5c939b27664c01b9ca3f49e81fd664d2dc </s> remove "ve... | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e6af98a436c8441c6c00e09a340e52e580cff21e | packages/public/umd/babylonjs/package.json |
<mask> {
<mask> "../../src/Culling/Octrees/octree.ts": [
<mask> "../../src/Culling/Octrees/octreeBlock.ts"
<mask> ],
<mask> "../../src/Culling/Octrees/octreeBlock.ts": [
<mask> "../../src/Culling/Octrees/octree.ts"
<mask> ],
<mask> "../../src/Engines/engine.ts": [
<mask> ... | [
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e7034abef32687e25914f47af387b3e1f42314f4 | Tools/Config/tempCircularValidation/core.json | |
"errorCount": 26 | <mask> ],
<mask> "../../src/scene.ts": [
<mask> "../../src/Materials/standardMaterial.ts"
<mask> ],
<mask> "errorCount": 28
<mask> }
</s> octree block dep
Former-commit-id: 0e624ab4df0971391c80fd847b18923ad21eee2e </s> remove "../../src/Culling/Octrees/octree.ts": [
"../../s... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e7034abef32687e25914f47af387b3e1f42314f4 | Tools/Config/tempCircularValidation/core.json |
<mask> import { SubMesh } from "../../Meshes/subMesh";
<mask> import { AbstractMesh } from "../../Meshes/abstractMesh";
<mask> import { Ray } from "../../Culling/ray";
<mask> import { OctreeBlock } from "./octreeBlock";
<mask> /**
<mask> * Contains an array of blocks representing the octree
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e7034abef32687e25914f47af387b3e1f42314f4 | src/Culling/Octrees/octree.ts | |
OctreeBlock._CreateBlocks(worldMin, worldMax, entries, this._maxBlockCapacity, 0, this.maxDepth, this, this._creationFunc);
| <mask> * @param worldMax worldMax for the octree blocks var blockSize = new Vector3((worldMax.x - worldMin.x) / 2, (worldMax.y - worldMin.y) / 2, (worldMax.z - worldMin.z) / 2);
<mask> * @param entries meshes to be added to the octree blocks
<mask> */
<mask> public update(worldMin... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e7034abef32687e25914f47af387b3e1f42314f4 | src/Culling/Octrees/octree.ts |
<mask>
<mask> return this._selectionContent;
<mask> }
<mask>
<mask> /**
<mask> * @hidden
<mask> */
<mask> public static _CreateBlocks<T>(worldMin: Vector3, worldMax: Vector3, entries: T[], maxBlockCapacity: number, currentDepth: number, maxDepth: number, t... | [
"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/e7034abef32687e25914f47af387b3e1f42314f4 | src/Culling/Octrees/octree.ts | |
/**
* Contains an array of blocks representing the octree
*/
export interface IOctreeContainer<T> {
/**
* Blocks within the octree
*/
blocks: Array<OctreeBlock<T>>;
}
| <mask> import { SmartArrayNoDuplicate } from "../../Misc/smartArray";
<mask> import { Vector3, Plane } from "../../Maths/math";
<mask> import { Ray } from "../../Culling/ray";
<mask> import { BoundingBox } from "../../Culling/boundingBox";
<mask> import { Octree } from "./octree";
<mask> /**
<mask> * Cl... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e7034abef32687e25914f47af387b3e1f42314f4 | src/Culling/Octrees/octreeBlock.ts |
OctreeBlock._CreateBlocks(this._minPoint, this._maxPoint, this.entries, this._capacity, this._depth, this._maxDepth, this, this._creationFunc);
}
/**
* @hidden
*/
public static _CreateBlocks<T>(worldMin: Vector3, worldMax: Vector3, entries: T[], maxBlockCapac... | <mask> /**
<mask> * Subdivide the content into child blocks (this block will then be empty)
<mask> */
<mask> public createInnerBlocks(): void {
<mask> Octree._CreateBlocks(this._minPoint, this._maxPoint, this.entries, this._capacity, this._depth, this._maxDepth, this, ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e7034abef32687e25914f47af387b3e1f42314f4 | src/Culling/Octrees/octreeBlock.ts |
<mask> private _currentType: number;
<mask> private _lightParent: TransformNode;
<mask> private _postprocess: Nullable<PostProcess>;
<mask> private _particleSystem: Nullable<ParticleSystem>;
<mask> private _particleSystemDrawObserver: Nullable<Observer<Effect>>;
<mask>
<mask> public cons... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e798f045be92a3f5092ceecb75f42c0264d00b01 | nodeEditor/src/components/preview/previewManager.ts | |
<mask>
<mask> public constructor(targetCanvas: HTMLCanvasElement, globalState: GlobalState) {
<mask> this._nodeMaterial = globalState.nodeMaterial;
<mask> this._globalState = globalState;
<mask> this._particleSystemDrawObserver = null;
<mask>
<mask> this._onBuildObserver = t... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e798f045be92a3f5092ceecb75f42c0264d00b01 | nodeEditor/src/components/preview/previewManager.ts | |
this._particleSystem.onBeforeDrawParticlesObservable.clear();
| <mask>
<mask> this._engine.releaseEffects();
<mask>
<mask> if (this._particleSystem) {
<mask> if (this._particleSystemDrawObserver) {
<mask> this._particleSystem.onBeforeDrawParticlesObservable.remove(this._particleSystemDrawObserver);
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e798f045be92a3f5092ceecb75f42c0264d00b01 | nodeEditor/src/components/preview/previewManager.ts |
<mask> if (this._particleSystemDrawObserver) {
<mask> this._particleSystem.onBeforeDrawParticlesObservable.remove(this._particleSystemDrawObserver);
<mask> }
<mask> this._particleSystem.onDisposeObservable.clear();
<mask> this._par... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e798f045be92a3f5092ceecb75f42c0264d00b01 | nodeEditor/src/components/preview/previewManager.ts | |
<mask> this._particleSystem.customEffect = null;
<mask> this._particleSystem.stop();
<mask> this._particleSystem.dispose();
<mask> this._particleSystem = null;
<mask> this._particleSystemDrawObserver = null;
<mask> }
<mas... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e798f045be92a3f5092ceecb75f42c0264d00b01 | nodeEditor/src/components/preview/previewManager.ts | |
this._loadParticleSystem(particleNumber, systemIndex, false);
| <mask> if (i == systemIndex) {
<mask> this._particleSystem = set.systems[i] as ParticleSystem;
<mask> this._particleSystem.disposeOnStop = true;
<mask> this._particleSystem.onDisposeObservable.add(() => {
<mask> if ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e798f045be92a3f5092ceecb75f42c0264d00b01 | nodeEditor/src/components/preview/previewManager.ts |
this._particleSystem.onBeforeDrawParticlesObservable.add((effect) => {
| <mask> if (this._particleSystemDrawObserver) {
<mask> this._particleSystem.onBeforeDrawParticlesObservable.remove(this._particleSystemDrawObserver);
<mask> }
<mask>
<mask> this._particleSystemDrawObserver = this._particleSystem.on... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e798f045be92a3f5092ceecb75f42c0264d00b01 | nodeEditor/src/components/preview/previewManager.ts |
var data = this.RGBE_ReadPixels(uint8array, hdrInfo);
| <mask> */
<mask> public static GetCubeMapTextureData(buffer: ArrayBuffer, size: number): CubeMapInfo {
<mask> var uint8array = new Uint8Array(buffer);
<mask> var hdrInfo = this.RGBE_ReadHeader(uint8array);
<mask> var data = this.RGBE_ReadPixels_RLE(uint8array, hdrInfo);
<mask>
<... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e7d5e22f1bae95e23d5c7fdde868a438bb0fd6ea | src/Misc/HighDynamicRange/hdr.ts |
<mask> * @param hdrInfo The header information of the file.
<mask> * @return The pixels data in RGB right to left up to down order.
<mask> */
<mask> public static RGBE_ReadPixels(uint8array: Uint8Array, hdrInfo: HDRInfo): Float32Array {
<mask> // Keep for multi format supports.
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e7d5e22f1bae95e23d5c7fdde868a438bb0fd6ea | src/Misc/HighDynamicRange/hdr.ts | |
if (a != 2 || b != 2 || (c & 0x80) || hdrInfo.width < 8 || hdrInfo.width > 32767) {
return this.RGBE_ReadPixels_NOT_RLE(uint8array, hdrInfo);
| <mask> b = uint8array[dataIndex++];
<mask> c = uint8array[dataIndex++];
<mask> d = uint8array[dataIndex++];
<mask>
<mask> if (a != 2 || b != 2 || (c & 0x80)) {
<mask> // this file is not run length encoded
<mask> throw "HDR Bad head... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e7d5e22f1bae95e23d5c7fdde868a438bb0fd6ea | src/Misc/HighDynamicRange/hdr.ts |
private _displayingPosterTexture = false;
private _settings: VideoTextureSettings;
private _createInternalTextureOnEvent: string;
| <mask>
<mask> private _generateMipMaps: boolean;
<mask> private _engine: Engine;
<mask> private _stillImageCaptured = false;
<mask> private _poster = false;
<mask>
<mask> /**
<mask> * Creates a video texture.
<mask> * If you want to display a video in... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e7e0948d5514ce686a20720b9ea41dcec84ff4d6 | src/Materials/Textures/babylon.videoTexture.ts |
this._settings = settings;
| <mask> this.name = name || this._getName(src);
<mask> this.video = this._getVideo(src);
<mask> if (settings.poster) {
<mask> this.video.poster = settings.poster;
<mask> }
<mask>
</s> Fix VideoTexture poster without autoplay
Former-commit-id: a2c9... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e7e0948d5514ce686a20720b9ea41dcec84ff4d6 | src/Materials/Textures/babylon.videoTexture.ts |
<mask> }
<mask>
<mask> this.video.setAttribute("playsinline", "");
<mask>
<mask> this.video.addEventListener("canplay", this._createInternalTexture);
<mask> this.video.addEventListener("paused", this._updateInternalTexture);
<mask> this.video.addEvent... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e7e0948d5514ce686a20720b9ea41dcec84ff4d6 | src/Materials/Textures/babylon.videoTexture.ts | |
this._createInternalTextureOnEvent = (settings.poster && !settings.autoPlay) ? "play" : "canplay";
this.video.addEventListener(this._createInternalTextureOnEvent, this._createInternalTexture);
| <mask>
<mask> this.video.addEventListener("paused", this._updateInternalTexture);
<mask> this.video.addEventListener("seeked", this._updateInternalTexture);
<mask> this.video.addEventListener("emptied", this.reset);
<mask>
<mask> const videoHasEnoughData = (this.v... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e7e0948d5514ce686a20720b9ea41dcec84ff4d6 | src/Materials/Textures/babylon.videoTexture.ts |
const videoHasEnoughData = (this.video.readyState >= this.video.HAVE_CURRENT_DATA);
if (settings.poster &&
(!settings.autoPlay || !videoHasEnoughData)) {
| <mask> this.video.addEventListener("paused", this._updateInternalTexture);
<mask> this.video.addEventListener("seeked", this._updateInternalTexture);
<mask> this.video.addEventListener("emptied", this.reset);
<mask>
<mask> if (this.video.readyState >= this.video.HAV... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e7e0948d5514ce686a20720b9ea41dcec84ff4d6 | src/Materials/Textures/babylon.videoTexture.ts |
this._displayingPosterTexture = true;
}
else if (videoHasEnoughData) {
this._createInternalTexture();
| <mask> }
<mask>
<mask> if (settings.poster) {
<mask> this._texture = this._engine.createTexture(settings.poster!, false, true, scene);
<mask> this._poster = true;
<mask> }
<mask> }
<mask>
<mask> private _getName(src: string |... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e7e0948d5514ce686a20720b9ea41dcec84ff4d6 | src/Materials/Textures/babylon.videoTexture.ts |
if (this._displayingPosterTexture) {
| <mask> }
<mask>
<mask> private _createInternalTexture = (): void => {
<mask> if (this._texture != null) {
<mask> if (this._poster) {
<mask> this._texture.dispose();
<mask> this._poster = false;
<mask> }
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e7e0948d5514ce686a20720b9ea41dcec84ff4d6 | src/Materials/Textures/babylon.videoTexture.ts |
this._displayingPosterTexture = false;
| <mask> private _createInternalTexture = (): void => {
<mask> if (this._texture != null) {
<mask> if (this._poster) {
<mask> this._texture.dispose();
<mask> this._poster = false;
<mask> }
<mask> else {
<ma... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e7e0948d5514ce686a20720b9ea41dcec84ff4d6 | src/Materials/Textures/babylon.videoTexture.ts |
if (!this.video.autoplay && !this._settings.poster) {
| <mask> this._generateMipMaps,
<mask> this._samplingMode
<mask> );
<mask>
<mask> if (!this.video.autoplay) {
<mask> let oldHandler = this.video.onplaying;
<mask> let error = false;
<mask> this.video.onplaying... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e7e0948d5514ce686a20720b9ea41dcec84ff4d6 | src/Materials/Textures/babylon.videoTexture.ts |
if (!this._displayingPosterTexture) {
| <mask> if (this._texture == null) {
<mask> return;
<mask> }
<mask>
<mask> if (!this._poster) {
<mask> this._texture.dispose();
<mask> this._texture = null;
<mask> }
<mask> }
<mask>
</s> Fix VideoTexture ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e7e0948d5514ce686a20720b9ea41dcec84ff4d6 | src/Materials/Textures/babylon.videoTexture.ts |
if (this._displayingPosterTexture) {
return;
}
| <mask> if (this.video.readyState < this.video.HAVE_CURRENT_DATA) {
<mask> return;
<mask> }
<mask>
<mask> this._engine.updateVideoTexture(this._texture, this.video, this._invertY);
<mask> }
<mask>
<mask> /**
<mask> * Change video con... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e7e0948d5514ce686a20720b9ea41dcec84ff4d6 | src/Materials/Textures/babylon.videoTexture.ts |
this.video.removeEventListener(this._createInternalTextureOnEvent, this._createInternalTexture);
| <mask> this._onUserActionRequestedObservable.clear();
<mask> this._onUserActionRequestedObservable = null;
<mask> }
<mask>
<mask> this.video.removeEventListener("canplay", this._createInternalTexture);
<mask> this.video.removeEventListener("paus... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e7e0948d5514ce686a20720b9ea41dcec84ff4d6 | src/Materials/Textures/babylon.videoTexture.ts |
private _teleportationTarget: Mesh;
private _isDefaultTeleportationTarget = true;
| <mask> private _teleportationBackRequestInitiated = false;
<mask> private teleportBackwardsVector = new Vector3(0, -1, -1);
<mask> private _rotationRightAsked = false;
<mask> private _rotationLeftAsked = false;
<mask> private _teleportationCircle: Mesh;
<mask> priva... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e81d51d4b83d43904c34bbed25af551355604f73 | src/Cameras/VR/babylon.vrExperienceHelper.ts |
public get teleportationTarget(): Mesh {
return this._teleportationTarget;
}
public set teleportationTarget(value: Mesh) {
if (value) {
value.name = "teleportationTarget";
this._isDefaultTeleportationTarget = false;
... | <mask> private _displayGaze = true;
<mask> private _displayLaserPointer = true;
<mask>
<mask> public get displayGaze(): boolean {
<mask> return this._displayGaze;
<mask> }
<mask>
</s> Exposing teleportationTarget mesh
Former-commit-id: af4bcb5133f14f80b169526ea015... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e81d51d4b83d43904c34bbed25af551355604f73 | src/Cameras/VR/babylon.vrExperienceHelper.ts |
&& mesh.name.indexOf("teleportationTarget") === -1
| <mask> }
<mask>
<mask> this._raySelectionPredicate = (mesh) => {
<mask> if (this._isTeleportationFloor(mesh) || (mesh.isVisible && mesh.name.indexOf("gazeTracker") === -1
<mask> && mesh.name.indexOf("teleportationCircle") === -1
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e81d51d4b83d43904c34bbed25af551355604f73 | src/Cameras/VR/babylon.vrExperienceHelper.ts |
if (this._isDefaultTeleportationTarget) {
this._createTeleportationCircles();
}
| <mask>
<mask> this._webVRCamera.detachPostProcess(this._postProcessMove)
<mask> this._passProcessMove = new BABYLON.PassPostProcess("pass", 1.0, this._webVRCamera);
<mask> this._teleportationEnabled = true;
<mask> this._createTeleportationCircles();
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e81d51d4b83d43904c34bbed25af551355604f73 | src/Cameras/VR/babylon.vrExperienceHelper.ts |
this._teleportationTarget = BABYLON.Mesh.CreateGround("teleportationTarget", 2, 2, 2, this._scene);
this._teleportationTarget.isPickable = false;
| <mask> this._gazeTracker.material = targetMat;
<mask> }
<mask>
<mask> private _createTeleportationCircles() {
<mask> this._teleportationCircle = BABYLON.Mesh.CreateGround("teleportationCircle", 2, 2, 2, this._scene);
<mask> this._teleportationCircle.isPickable ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e81d51d4b83d43904c34bbed25af551355604f73 | src/Cameras/VR/babylon.vrExperienceHelper.ts |
this._teleportationTarget.material = teleportationCircleMaterial;
| <mask> dynamicTexture.update();
<mask>
<mask> var teleportationCircleMaterial = new BABYLON.StandardMaterial("TextPlaneMaterial", this._scene);
<mask> teleportationCircleMaterial.diffuseTexture = dynamicTexture;
<mask> this._teleportationCircle.material = teleportat... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e81d51d4b83d43904c34bbed25af551355604f73 | src/Cameras/VR/babylon.vrExperienceHelper.ts |
torus.parent = this._teleportationTarget;
| <mask> this._teleportationCircle.material = teleportationCircleMaterial;
<mask>
<mask> var torus = BABYLON.Mesh.CreateTorus("torusTeleportation", 0.75, 0.1, 25, this._scene, false);
<mask> torus.isPickable = false;
<mask> torus.parent = this._teleportationCircle;
<... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e81d51d4b83d43904c34bbed25af551355604f73 | src/Cameras/VR/babylon.vrExperienceHelper.ts |
this._hideTeleportationTarget();
| <mask> torus.animations.push(animationInnerCircle);
<mask>
<mask> this._scene.beginAnimation(torus, 0, 60, true);
<mask>
<mask> this._hideTeleportationCircle();
<mask> }
<mask>
<mask> private _displayTeleportationCircle() {
<mask> if (this._tel... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e81d51d4b83d43904c34bbed25af551355604f73 | src/Cameras/VR/babylon.vrExperienceHelper.ts |
private _displayTeleportationTarget() {
| <mask>
<mask> this._hideTeleportationCircle();
<mask> }
<mask>
<mask> private _displayTeleportationCircle() {
<mask> if (this._teleportationEnabled) {
<mask> this._teleportationCircle.isVisible = true;
<mask> (<Mesh>this._teleportationCir... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e81d51d4b83d43904c34bbed25af551355604f73 | src/Cameras/VR/babylon.vrExperienceHelper.ts |
this._teleportationTarget.isVisible = true;
if (this._isDefaultTeleportationTarget) {
(<Mesh>this._teleportationTarget.getChildren()[0]).isVisible = true;
}
| <mask> }
<mask>
<mask> private _displayTeleportationCircle() {
<mask> if (this._teleportationEnabled) {
<mask> this._teleportationCircle.isVisible = true;
<mask> (<Mesh>this._teleportationCircle.getChildren()[0]).isVisible = true;
<mask> }
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e81d51d4b83d43904c34bbed25af551355604f73 | src/Cameras/VR/babylon.vrExperienceHelper.ts |
private _hideTeleportationTarget() {
| <mask> (<Mesh>this._teleportationCircle.getChildren()[0]).isVisible = true;
<mask> }
<mask> }
<mask>
<mask> private _hideTeleportationCircle() {
<mask> if (this._teleportationEnabled) {
<mask> this._teleportationCircle.isVisible = false;
<... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e81d51d4b83d43904c34bbed25af551355604f73 | src/Cameras/VR/babylon.vrExperienceHelper.ts |
this._teleportationTarget.isVisible = false;
if (this._isDefaultTeleportationTarget) {
(<Mesh>this._teleportationTarget.getChildren()[0]).isVisible = false;
}
| <mask> }
<mask>
<mask> private _hideTeleportationCircle() {
<mask> if (this._teleportationEnabled) {
<mask> this._teleportationCircle.isVisible = false;
<mask> (<Mesh>this._teleportationCircle.getChildren()[0]).isVisible = false;
<mask> }
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e81d51d4b83d43904c34bbed25af551355604f73 | src/Cameras/VR/babylon.vrExperienceHelper.ts |
this._displayTeleportationTarget();
| <mask> private _moveTeleportationSelectorTo(hit: PickingInfo) {
<mask> if (hit.pickedPoint) {
<mask> this._teleportationAllowed = true;
<mask> if (this._teleportationRequestInitiated) {
<mask> this._displayTeleportationCircle();
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e81d51d4b83d43904c34bbed25af551355604f73 | src/Cameras/VR/babylon.vrExperienceHelper.ts |
this._hideTeleportationTarget();
| <mask> if (this._teleportationRequestInitiated) {
<mask> this._displayTeleportationCircle();
<mask> }
<mask> else {
<mask> this._hideTeleportationCircle();
<mask> }
<mask> this._haloCenter.copy... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e81d51d4b83d43904c34bbed25af551355604f73 | src/Cameras/VR/babylon.vrExperienceHelper.ts |
this._teleportationTarget.position.copyFrom(hit.pickedPoint);
| <mask> else {
<mask> this._hideTeleportationCircle();
<mask> }
<mask> this._haloCenter.copyFrom(hit.pickedPoint);
<mask> this._teleportationCircle.position.copyFrom(hit.pickedPoint);
<mask> var pickNormal = hit.get... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e81d51d4b83d43904c34bbed25af551355604f73 | src/Cameras/VR/babylon.vrExperienceHelper.ts |
BABYLON.Vector3.RotationFromAxisToRef(axis2, pickNormal, axis1, this._teleportationTarget.rotation);
| <mask> var pickNormal = hit.getNormal(true, false);
<mask> if (pickNormal) {
<mask> var axis1 = BABYLON.Vector3.Cross(BABYLON.Axis.Y, pickNormal);
<mask> var axis2 = BABYLON.Vector3.Cross(pickNormal, axis1);
<mask> BABYLON.... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e81d51d4b83d43904c34bbed25af551355604f73 | src/Cameras/VR/babylon.vrExperienceHelper.ts |
this._teleportationTarget.position.y += 0.1;
| <mask> var axis1 = BABYLON.Vector3.Cross(BABYLON.Axis.Y, pickNormal);
<mask> var axis2 = BABYLON.Vector3.Cross(pickNormal, axis1);
<mask> BABYLON.Vector3.RotationFromAxisToRef(axis2, pickNormal, axis1, this._teleportationCircle.rotation);
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/e81d51d4b83d43904c34bbed25af551355604f73 | src/Cameras/VR/babylon.vrExperienceHelper.ts |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.