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 |
|---|---|---|---|---|
if (this._forceSelecting) {
| <mask> var pos = this.getGroundPosition();
<mask> if (pos === null && this._forceSelecting && !evt.button) {
<mask> this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
<mask> }
<mask> if (this._forceSelecting) {//this._forceMoving ||
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1d63fe1196712a94a8c9001c8bf1e6cd8baea3ae | guiEditor/src/diagram/workbench.tsx |
<mask> case "g": //outlines
<mask> case "G":
<mask> this.globalState.onOutlinesObservable.notifyObservers();
<mask> break;
<mask> // case "m": //move
<mask> // case "M":
<mask> // if (!this... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1d63fe1196712a94a8c9001c8bf1e6cd8baea3ae | guiEditor/src/diagram/workbench.tsx | |
readonly COMMAND_SETPROGRAM: number;
| <mask> readonly COMMAND_DELETEINDEXBUFFER: number;
<mask> readonly COMMAND_DELETEVERTEXBUFFER: number;
<mask> readonly COMMAND_SETMATRIX: number;
<mask> readonly COMMAND_SETMATRIX3X3: number;
<mask> readonly COMMAND_SETMATRIX2X2: number;
<mask> readonly COMMAND_SETMATRICES: number;
</s> S... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1d992e436d5a26f5b3a7104781345e96775321f9 | src/Engines/nativeEngine.ts |
//setProgram(program: any): void;
| <mask>
<mask> createProgram(vertexShader: string, fragmentShader: string): any;
<mask> getUniforms(shaderProgram: any, uniformsNames: string[]): WebGLUniformLocation[];
<mask> getAttributes(shaderProgram: any, attributeNames: string[]): number[];
<mask> setProgram(program: any): void;
<mask>
<m... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1d992e436d5a26f5b3a7104781345e96775321f9 | src/Engines/nativeEngine.ts |
//this._native.setProgram(program);
this._commandBufferEncoder.beginEncodingCommand(this._native.COMMAND_SETPROGRAM);
this._commandBufferEncoder.encodeCommandArgAsUInt32(program);
this._commandBufferEncoder.finishEncodingCommand();
| <mask> }
<mask>
<mask> protected _setProgram(program: WebGLProgram): void {
<mask> if (this._currentProgram !== program) {
<mask> this._native.setProgram(program);
<mask> this._currentProgram = program;
<mask> }
<mask> }
<mask>
<mask> public _releaseEf... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1d992e436d5a26f5b3a7104781345e96775321f9 | src/Engines/nativeEngine.ts |
<mask> import type { Vector2 } from "../Maths/math.vector";
<mask> import { TmpVectors } from "../Maths/math.vector";
<mask> import { Color3 } from "../Maths/math.color";
<mask> import type { Nullable } from "../types";
<mask> import { serialize, serializeAsTexture } from "../Misc/decorators";
<mask> import type ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts | |
import { PBRMaterial } from "./PBR/pbrMaterial";
import { DeepCopier } from "../Misc/deepCopier";
import type { BaseTexture } from "./Textures/baseTexture";
| <mask> import { MaterialDefines } from "./materialDefines";
<mask> import type { AbstractMesh } from "core/Meshes/abstractMesh";
<mask>
<mask> export enum GreasedLineMeshMaterialType {
<mask> MATERIAL_TYPE_STANDARD = 0,
<mask> MATERIAL_TYPE_PBR = 1,
<mask> }
</s> Requested changes on the PR </s> remove... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
* Colors of the line segments.
| <mask> * Defaults to @see GreasedLineMeshColorMode.SET
<mask> */
<mask> colorMode?: GreasedLineMeshColorMode;
<mask> /**
<mask> * Colors of the line segments. RGBA
<mask> * Defaults to empty.
<mask> */
<mask> colors?: Uint8Array;
<mask> /**
<mask> * If true, @see ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
colors?: Color3[];
| <mask> /**
<mask> * Colors of the line segments. RGBA
<mask> * Defaults to empty.
<mask> */
<mask> colors?: Uint8Array;
<mask> /**
<mask> * If true, @see colors are used, otherwise they're ignored.
<mask> * Defaults to false.
<mask> */
<mask> useColors?: boolean;
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
<mask> */
<mask> resolution?: Vector2;
<mask> }
<mask>
<mask> const GREASED_LINE_MATERIAL_NAME = "GreasedLine";
<mask>
<mask> /**
<mask> * @internal
<mask> */
<mask> export class MaterialGreasedLineDefines extends MaterialDefines {
<mask> GREASED_LINE_HAS_COLOR = false;
</s> Requested chang... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts | |
/**
* The material has a color option specified
*/
// eslint-disable-next-line @typescript-eslint/naming-convention
| <mask> /**
<mask> * @internal
<mask> */
<mask> export class MaterialGreasedLineDefines extends MaterialDefines {
<mask> GREASED_LINE_HAS_COLOR = false;
<mask> /**
<mask> * The material has a color option specified
<mask> */
<mask> // eslint-disable-next-line @typescript-eslint/naming-co... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
/**
* The material has a color option specified
*/
// eslint-disable-next-line @typescript-eslint/naming-convention
GREASED_LINE_HAS_COLORS = false;
/**
* The material's size attenuation optiom
*/
// eslint-disable-next-line @typescript-eslint/naming-convention
| <mask> */
<mask> // eslint-disable-next-line @typescript-eslint/naming-convention
<mask> GREASED_LINE_HAS_COLOR = false;
<mask> GREASED_LINE_SIZE_ATTENUATION = false;
<mask> }
<mask>
<mask> /**
<mask> * GreasedLinePluginMaterial for GreasedLineMesh
</s> Requested changes on the PR </s> remov... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
/**
* Plugin name
*/
public static readonly GREASED_LINE_MATERIAL_NAME = "GreasedLine";
| <mask> /**
<mask> * GreasedLinePluginMaterial for GreasedLineMesh
<mask> */
<mask> export class GreasedLinePluginMaterial extends MaterialPluginBase {
<mask> @serializeAsTexture()
<mask> private _colorsTexture?: RawTexture;
<mask>
<mask> private _dashArray = 0;
<mask>
<mask> @serialize()
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
<mask> private _colorsTexture?: RawTexture;
<mask>
<mask> private _dashArray = 0;
<mask>
<mask> @serialize()
<mask> private _options: GreasedLineMaterialOptions;
<mask>
<mask> private _engine: Engine;
<mask>
<mask> constructor(
</s> Requested changes on the PR </s> remove @ser... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts | |
private static _EmptyColorsTexture: RawTexture
| <mask> private _engine: Engine;
<mask>
<mask> constructor(
<mask> material: Material,
<mask> private _scene: Scene,
<mask>
</s> Requested changes on the PR </s> remove @serialize()
</s> add </s> remove constructor(public readonly name: string, scene: Scene, private _options: G... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
// defines.GREASED_LINE_HAS_COLORS = (options.colors?.length ?? 0) > 0
| <mask> const defines = new MaterialGreasedLineDefines();
<mask> defines.GREASED_LINE_HAS_COLOR = !!options.color;
<mask> defines.GREASED_LINE_SIZE_ATTENUATION = options.sizeAttenuation ?? false;
<mask>
<mask> super(material, GreasedLinePluginMaterial.GREASED_LINE_MATERIAL_NAME, 200... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
super(material, GreasedLinePluginMaterial.GREASED_LINE_MATERIAL_NAME, 200, defines);
| <mask> const defines = new MaterialGreasedLineDefines();
<mask> defines.GREASED_LINE_HAS_COLOR = !!options.color;
<mask> defines.GREASED_LINE_SIZE_ATTENUATION = options.sizeAttenuation ?? false;
<mask>
<mask> super(material, GREASED_LINE_MATERIAL_NAME, 200, defines);
<mask>
<mas... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
} else {
GreasedLinePluginMaterial._PrepareEmptyColorsTexture(_scene);
| <mask> if (options.colors) {
<mask> this._createColorsTexture(`${material.name}-colors-texture`, options.colors);
<mask> }
<mask>
<mask> this._options = options;
<mask> this.setDashCount(options.dashCount ?? 1); // calculate the _dashArray value
</s> Requested changes... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
public getActiveTextures(activeTextures: BaseTexture[]): void {
if (this._colorsTexture) {
activeTextures.push(this._colorsTexture);
}
}
| <mask> getSamplers(samplers: string[]) {
<mask> samplers.push("grl_colors");
<mask> }
<mask>
<mask> getUniforms() {
<mask> const ubo = [
<mask> { name: "grl_projection", size: 16, type: "mat4" },
<mask> { name: "grl_singleColor", size: 3, type: "vec3" },
<ma... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
const ubo = [
{ name: "grl_projection", size: 16, type: "mat4" },
{ name: "grl_singleColor", size: 3, type: "vec3" },
{ name: "grl_resolution_lineWidth", size: 3, type: "vec3" },
{ name: "grl_dashOptions", size: 4, type: "vec4" },
{ name: "grl_col... | <mask>
<mask> getUniforms() {
<mask> return {
<mask> ubo,
<mask> vertex: `
<mask> uniform vec3 grl_resolution_lineWidth;
</s> Requested changes on the PR </s> remove ubo: [
{ name: "grl_projection", size: 16, type: "mat4" },
... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
ubo,
| <mask> }
<mask>
<mask> getUniforms() {
<mask> return {
<mask> ubo: [
<mask> { name: "grl_projection", size: 16, type: "mat4" },
<mask> { name: "grl_singleColor", size: 3, type: "vec3" },
<mask> { name: "grl_resolution_lineWidth", size:... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
uniform vec3 grl_resolution_lineWidth;
uniform mat4 grl_projection;
`,
| <mask> { name: "grl_dashOptions", size: 4, type: "vec4" },
<mask> { name: "grl_colorMode_visibility_colorsWidth_useColors", size: 4, type: "vec4" },
<mask> ],
<mask> vertex: `
<mask> uniform vec3 grl_resolution_lineWidth;
<mask> uniform mat4 grl_... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
uniform vec4 grl_dashOptions;
uniform vec4 grl_colorMode_visibility_colorsWidth_useColors;
uniform sampler2D grl_colors;
uniform vec3 grl_singleColor;
`,
| <mask> uniform vec3 grl_resolution_lineWidth;
<mask> uniform mat4 grl_projection;
<mask> `,
<mask> fragment: `
<mask> uniform vec4 grl_dashOptions;
<mask> uniform vec4 grl_colorMode_visibility_colorsWidth_useColors;
<mask>
<mask> uniform sampler2D grl_colors;
<m... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
} else if (this._engine.isWebGPU) {
uniformBuffer.setTexture("grl_colors", GreasedLinePluginMaterial._EmptyColorsTexture )
| <mask> }
<mask>
<mask> if (this._colorsTexture) {
<mask> uniformBuffer.setTexture("grl_colors", this._colorsTexture);
<mask> }
<mask>
<mask> uniformBuffer.update();
<mask> }
<mask>
<mask> prepareDefines(defines: MaterialGreasedLineDefines, _scene: Scene, ... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
defines.GREASED_LINE_HAS_COLOR = !!options.color;
// defines.GREASED_LINE_HAS_COLORS = (options.colors?.length ?? 0) > 0
defines.GREASED_LINE_SIZE_ATTENUATION = options.sizeAttenuation ?? false;
| <mask> }
<mask>
<mask> prepareDefines(defines: MaterialGreasedLineDefines, _scene: Scene, _mesh: AbstractMesh) {
<mask> const options = this._options;
<mask> defines["GREASED_LINE_HAS_COLOR"] = !!options.color;
<mask> defines["GREASED_LINE_SIZE_ATTENUATION"] = options.sizeAttenuat... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
return GreasedLinePluginMaterial.GREASED_LINE_MATERIAL_NAME;
| <mask> defines["GREASED_LINE_SIZE_ATTENUATION"] = options.sizeAttenuation ?? false;
<mask> }
<mask>
<mask> getClassName() {
<mask> return GREASED_LINE_MATERIAL_NAME;
<mask> }
<mask>
<mask> getCustomCode(shaderType: string): Nullable<{ [pointName: string]: string }> {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
out vec3 vNormal;
// varying vec4 vColor;
out float grlCounters;
// varying int grlColorPointer; // flat
flat out int grlColorPointer; // flat
| <mask> attribute vec4 grl_nextAndCounters;
<mask> attribute float grl_widths;
<mask> attribute vec3 grl_offsets;
<mask>
<mask> varying vec3 vNormal;
<mask> varying vec4 vColor;
<mask> varying ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
vec3 grlPositionOffset = grl_offsets;
positionUpdated += grlPositionOffset;
| <mask> }
<mask> `,
<mask> // eslint-disable-next-line @typescript-eslint/naming-convention
<mask> CUSTOM_VERTEX_UPDATE_POSITION: `
<mask> vec3 positionOffset = grl_offsets;
<mask> positionUpdated += positio... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
// grlColorPointer = float(gl_VertexID);
grlColorPointer = gl_VertexID;
vec2 grlResolution = grl_resolution_lineWidth.xy;
float grlBaseWidth = grl_resolution_lineWidth.z;
vec3 grlPrevious = grl_previousAndSide.xy... | <mask> positionUpdated += positionOffset;
<mask> `,
<mask> // eslint-disable-next-line @typescript-eslint/naming-convention
<mask> CUSTOM_VERTEX_MAIN_END: `
<mask> vColorPointers = gl_VertexID;
<mask> vCoun... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
vec3 grlNext = grl_nextAndCounters.xyz;
grlCounters = grl_nextAndCounters.w;
| <mask> CUSTOM_VERTEX_MAIN_END: `
<mask> vColorPointers = gl_VertexID;
<mask> vCounters = grl_nextAndCounters.w;
<mask>
<mask> float aspect = grl_resolution_lineWidth.x / grl_resolution_lineWidth.y;
<mask>
<mask> mat... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
float grlAspect = grlResolution.x / grlResolution.y;
| <mask> vCounters = grl_nextAndCounters.w;
<mask>
<mask> float aspect = grl_resolution_lineWidth.x / grl_resolution_lineWidth.y;
<mask>
<mask> mat4 m = viewProjection * world;
<mask> vec4 finalPosition = m * vec4( positionUpdated , 1... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
mat4 grlMatrix = viewProjection * world;
vec4 grlFinalPosition = grlMatrix * vec4( positionUpdated , 1.0 );
vec4 grlPrevPos = grlMatrix * vec4( grlPrevious + grlPositionOffset, 1.0 );
vec4 grlNextPos = grlMatrix * vec4( grlNext + grlPosi... | <mask> vec4 finalPosition = m * vec4( positionUpdated , 1.0 );
<mask> vec4 prevPos = m * vec4( grl_previousAndSide.xyz, 1.0 );
<mask> vec4 nextPos = m * vec4( grl_nextAndCounters.xyz, 1.0 );
<mask>
<mask> vec2 currentP = fix( finalPos... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
vec2 grlCurrentP = fix( grlFinalPosition, grlAspect );
vec2 grlPrevP = fix( grlPrevPos, grlAspect );
vec2 grlNextP = fix( grlNextPos, grlAspect );
| <mask> vec2 currentP = fix( finalPosition, aspect );
<mask> vec2 prevP = fix( prevPos, aspect );
<mask> vec2 nextP = fix( nextPos, aspect );
<mask>
<mask> float w = grl_resolution_lineWidth.z * grl_widths;
<mask>
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
float grlWidth = grlBaseWidth * grl_widths;
vec2 grlDir;
if( grlNextP == grlCurrentP ) grlDir = normalize( grlCurrentP - grlPrevP );
else if( grlPrevP == grlCurrentP ) grlDir = normalize( grlNextP - grlCurrentP );
| <mask> vec2 nextP = fix( nextPos, aspect );
<mask>
<mask> float w = grl_resolution_lineWidth.z * grl_widths;
<mask>
<mask> vec2 dir;
<mask> if( nextP == currentP ) dir = normalize( currentP - prevP );
<mask> els... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
vec2 grlDir1 = normalize( grlCurrentP - grlPrevP );
vec2 grlDir2 = normalize( grlNextP - grlCurrentP );
grlDir = normalize( grlDir1 + grlDir2 );
| <mask> vec2 dir;
<mask> if( nextP == currentP ) dir = normalize( currentP - prevP );
<mask> else if( prevP == currentP ) dir = normalize( nextP - currentP );
<mask> else {
<mask> vec2 dir1 = normalize( currentP ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
vec4 grlNormal = vec4( -grlDir.y, grlDir.x, 0., 1. );
grlNormal.xy *= .5 * grlWidth;
grlNormal *= grl_projection;
| <mask> vec2 dir1 = normalize( currentP - prevP );
<mask> vec2 dir2 = normalize( nextP - currentP );
<mask> dir = normalize( dir1 + dir2 );
<mask> }
<mask> vec4 normal = vec4( -dir.y, dir.x, 0., 1. );
<m... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
grlNormal.xy *= grlFinalPosition.w;
grlNormal.xy /= ( vec4( grlResolution, 0., 1. ) * grl_projection ).xy;
| <mask> vec4 normal = vec4( -dir.y, dir.x, 0., 1. );
<mask> normal.xy *= .5 * w;
<mask> normal *= grl_projection;
<mask> #ifdef GREASED_LINE_SIZE_ATTENUATION
<mask> normal.xy *= finalPosition.w;
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
grlFinalPosition.xy += grlNormal.xy * grlSide;
| <mask> normal.xy *= finalPosition.w;
<mask> normal.xy /= ( vec4( grl_resolution_lineWidth.xy, 0., 1. ) * grl_projection ).xy;
<mask> #endif
<mask>
<mask> finalPosition.xy += normal.xy * grl_previousAndSide.w;
<mask>
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
gl_Position = grlFinalPosition;
| <mask> #endif
<mask>
<mask> finalPosition.xy += normal.xy * grl_previousAndSide.w;
<mask>
<mask> gl_Position = finalPosition;
<mask>
<mask> vNormal= normal.xyz;
<mask> vPositionW = vec3(finalPosition);
<mask>... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
vNormal= grlNormal.xyz;
vPositionW = vec3(grlFinalPosition);
| <mask> finalPosition.xy += normal.xy * grl_previousAndSide.w;
<mask>
<mask> gl_Position = finalPosition;
<mask>
<mask> vNormal= normal.xyz;
<mask> vPositionW = vec3(finalPosition);
<mask> `,
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
in float grlCounters;
flat in int grlColorPointer; // flat
// flat in int grlColorPointer; // flat
| <mask> if (shaderType === "fragment") {
<mask> return {
<mask> // eslint-disable-next-line @typescript-eslint/naming-convention
<mask> CUSTOM_FRAGMENT_DEFINITIONS: `
<mask> varying float vCounters;
<mask> flat in int vColo... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
// int grlColorPointerFlat = int(grlColorPointer);
int grlColorPointerFlat = grlColorPointer;
float grlColorMode = grl_colorMode_visibility_colorsWidth_useColors.x;
float grlVisibility = grl_colorMode_visibility_colorsWidth_useColors.y;
... | <mask> flat in int vColorPointers;
<mask> `,
<mask> // eslint-disable-next-line @typescript-eslint/naming-convention
<mask> CUSTOM_FRAGMENT_MAIN_END: `
<mask> gl_FragColor.a *= step(vCounters, grl_colorMode_visibility_colorsWid... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
if(grlUseDash == 1.){
gl_FragColor.a *= ceil(mod(grlCounters + grlDashOffset, grlDashArray) - (grlDashArray * grlDashRatio));
if (gl_FragColor.a == 0.) discard;
| <mask> CUSTOM_FRAGMENT_MAIN_END: `
<mask> gl_FragColor.a *= step(vCounters, grl_colorMode_visibility_colorsWidth_useColors.y);
<mask> if( gl_FragColor.a == 0. ) discard;
<mask>
<mask> if(grl_dashOptions.x == 1.){
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
if (grlColorMode == ${GreasedLineMeshColorMode.COLOR_MODE_SET}.) {
| <mask> if(gl_FragColor.a == 0.) discard;
<mask> }
<mask>
<mask> #ifdef GREASED_LINE_HAS_COLOR
<mask> if (grl_colorMode_visibility_colorsWidth_useColors.x == ${GreasedLineMeshColorMode.COLOR_MODE_SET}.) {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
} else if (grlColorMode == ${GreasedLineMeshColorMode.COLOR_MODE_ADD}.) {
| <mask>
<mask> #ifdef GREASED_LINE_HAS_COLOR
<mask> if (grl_colorMode_visibility_colorsWidth_useColors.x == ${GreasedLineMeshColorMode.COLOR_MODE_SET}.) {
<mask> gl_FragColor.rgb = grl_singleColor;
<mask> } else if (grl... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
} else if (grlColorMode == ${GreasedLineMeshColorMode.COLOR_MODE_MULTIPLY}.) {
| <mask> if (grl_colorMode_visibility_colorsWidth_useColors.x == ${GreasedLineMeshColorMode.COLOR_MODE_SET}.) {
<mask> gl_FragColor.rgb = grl_singleColor;
<mask> } else if (grl_colorMode_visibility_colorsWidth_useColors.x == ${GreasedLineMeshC... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
if (grlUseColors == 1.) {
vec4 grlColor = texture2D(grl_colors, vec2(float(grlColorPointerFlat)/(grlColorsWidth), 0.));;
if (grlColorMode == ${GreasedLineMeshColorMode.COLOR_MODE_SET}.) {
gl_FragColor = grlColor;
... | <mask> } else if (grl_colorMode_visibility_colorsWidth_useColors.x == ${GreasedLineMeshColorMode.COLOR_MODE_MULTIPLY}.) {
<mask> gl_FragColor.rgb *= grl_singleColor;
<mask> }
<mask> #else
<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/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
private _createColorsTexture(name: string, colors: Color3[]) {
const colorsArray = GreasedLinePluginMaterial._Color3toRGBAUint8(colors);
this._colorsTexture = new RawTexture(colorsArray, colors.length, 1, Engine.TEXTUREFORMAT_RGBA, this._scene, false, true, RawTexture.NEAREST_NEAREST);
| <mask> * Creates a RawTexture from an RGBA color array and sets it on the plugin material instance.
<mask> * @param name name of the texture
<mask> * @param colors Uint8Array of colors
<mask> */
<mask> private _createColorsTexture(name: string, colors: Uint8Array) {
<mask> this._co... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
public setColors(colors: Nullable<Color3[]>, lazy = false, forceUpdate = false): void {
| <mask> * @param lazy if lazy, the colors are not updated
<mask> * @param forceUpdate force creation of a new texture
<mask> * @returns
<mask> */
<mask> public setColors(colors: Nullable<Uint8Array>, lazy = false, forceUpdate = false): void {
<mask> if (colors === null || colors.len... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
const colorArray = GreasedLinePluginMaterial._Color3toRGBAUint8(colors);
this._colorsTexture.update(colorArray);
| <mask> return;
<mask> }
<mask>
<mask> if (this._colorsTexture && origColorsCount === colors.length && !forceUpdate) {
<mask> this._colorsTexture.update(colors);
<mask> } else {
<mask> this._colorsTexture?.dispose();
<mask>
<mask> this._c... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
* Sets the mixing mode of the color paramater. Default value is GreasedLineMeshColorMode.SET
* @see GreasedLineMeshColorMode
| <mask> }
<mask> }
<mask>
<mask> /**
<mask> * Sets the mixing mode of the color paramater. Default value is GreasedLineMeshColorMode.SET TODO: describe modes
<mask> * @param value color mode
<mask> */
<mask> public setColorMode(value: GreasedLineMeshColorMode) {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Materials/greasedLinePluginMaterial.ts |
import { GreasedLineMeshColorMode, GreasedLineMeshMaterialType, GreasedLinePluginMaterial } from "../../Materials/greasedLinePluginMaterial";
| <mask> import { Color3 } from "../../Maths/math.color";
<mask> import type { GreasedLineMaterialOptions } from "../../Materials/greasedLinePluginMaterial";
<mask> import { GreasedLineMeshColorMode, GreasedLinePluginMaterial, GreasedLineMeshMaterialType } from "../../Materials/greasedLinePluginMaterial";
<mask> impo... | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/Builders/greasedLineBuilder.ts |
import type { GreasedLineMeshOptions, GreasedLinePoints } from "../greasedLineMesh";
| <mask> import { PBRMaterial } from "../../Materials/PBR/pbrMaterial";
<mask> import type { Vector2 } from "../../Maths/math.vector";
<mask> import { Vector3 } from "../../Maths/math.vector";
<mask> import type { Nullable } from "../../types";
<mask> import type { GreasedLineMeshOptions } from "../greasedLineMesh";... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/Builders/greasedLineBuilder.ts |
<mask> import { GreasedLineMeshColorDistribution, GreasedLineMeshWidthDistribution, GreasedLineMesh } from "../greasedLineMesh";
<mask> import type { Scene } from "../../scene";
<mask> import { EngineStore } from "../../Engines/engineStore";
<mask>
<mask> export type GreasedLinePoints = Vector3[] | Vector3[][] | ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/Builders/greasedLineBuilder.ts | |
export interface GreasedLineBuilderOptions2 {
| <mask>
<mask> /**
<mask> * Options for GreasedLineBuilder
<mask> */
<mask> export interface GreasedLineBuilderOptions {
<mask> // mesh related
<mask> /**
<mask> * Points of the line.
<mask> */
<mask> points: GreasedLinePoints;
</s> Requested changes on the PR </s> remove export type ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/Builders/greasedLineBuilder.ts |
/**
* Materail options for GreasedLneBuilder
*/
export interface GreasedLineMaterialBuilderOptions extends GreasedLineMaterialOptions {
/**
* If set to true a new material will created and a new material plugin will be attached
* to the material. The material will be set on the mesh. If the instan... | <mask> }
<mask>
<mask> /**
<mask> * Builder class for create GreasedLineMeshes
<mask> */
<mask> export class GreasedLineMeshBuilder {
<mask> private static _DEFAULT_COLOR = Color3.White();
<mask>
</s> Requested changes on the PR </s> remove @serializeAsTexture()
</s> add /**
* Plugin nam... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/Builders/greasedLineBuilder.ts |
* @param materialOptions material options for the mesh
| <mask> /**
<mask> * Creates a GreasedLine mesh
<mask> * @param name name of the mesh
<mask> * @param options options for the mesh
<mask> * @param scene scene where the mesh will be created
<mask> * @returns instance of GreasedLineMesh
<mask> */
<mask> public static CreateGr... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/Builders/greasedLineBuilder.ts |
public static CreateGreasedLine(name: string, options: GreasedLineMeshOptions, materialOptions?: Nullable<GreasedLineMaterialBuilderOptions>, scene?: Nullable<Scene>) {
| <mask> * @param options options for the mesh
<mask> * @param scene scene where the mesh will be created
<mask> * @returns instance of GreasedLineMesh
<mask> */
<mask> public static CreateGreasedLine(name: string, options: GreasedLineBuilderOptions, scene: Nullable<Scene>) {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/Builders/greasedLineBuilder.ts |
const allPoints = GreasedLineMesh.ConvertPoints(options.points);
| <mask> public static CreateGreasedLine(name: string, options: GreasedLineBuilderOptions, scene: Nullable<Scene>) {
<mask> scene = <Scene>(scene ?? EngineStore.LastCreatedScene);
<mask>
<mask> let instance;
<mask> const allPoints = GreasedLineMeshBuilder.ConvertPoints(options.points);
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/Builders/greasedLineBuilder.ts |
const colors = materialOptions?.colors
? GreasedLineMeshBuilder.NormalizeColorTable(
length,
materialOptions.colors,
GreasedLineMeshColorDistribution.COLOR_DISTRIBUTION_START,
materialOptions.color ?? GreasedLineMeshBuilder... | <mask> }
<mask>
<mask> const widths = GreasedLineMeshBuilder.NormalizeWidthTable(length, options.widths ?? [], GreasedLineMeshWidthDistribution.WIDTH_DISTRIBUTION_START);
<mask>
<mask> const colors = options.colors
<mask> ? GreasedLineMeshBuilder.NormalizeColorTable(length, o... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/Builders/greasedLineBuilder.ts |
<mask> const colors = options.colors
<mask> ? GreasedLineMeshBuilder.NormalizeColorTable(length, options.colors, GreasedLineMeshColorDistribution.COLOR_DISTRIBUTION_START, options.color ?? GreasedLineMeshBuilder._DEFAULT_COLOR)
<mask> : undefined;
<mask>
<mask> const offset... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/Builders/greasedLineBuilder.ts | |
// offsets: options.offsets,
| <mask> // create new mesh if instance is not defined
<mask> if (!options.instance) {
<mask> const initialGreasedLineOptions: GreasedLineMeshOptions = {
<mask> points: allPoints,
<mask> offsets,
<mask> updatable: options.updatable,
<mask>... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/Builders/greasedLineBuilder.ts |
lazy: options.lazy,
| <mask> // offsets: options.offsets,
<mask> updatable: options.updatable,
<mask> widths,
<mask> };
<mask>
<mask> instance = new GreasedLineMesh(name, scene, initialGreasedLineOptions);
<mask>
</s> Requested changes on the PR </s> remove ... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/Builders/greasedLineBuilder.ts |
instance = new GreasedLineMesh(name, scene, initialGreasedLineOptions);
if (materialOptions) {
const initialMaterialOptions: GreasedLineMaterialOptions = {
materialType: materialOptions.materialType,
dashCount: materialOptions.dashCou... | <mask> updatable: options.updatable,
<mask> widths,
<mask> };
<mask>
<mask> const initialMaterialOptions: GreasedLineMaterialOptions = {
<mask> materialType: options.materialType,
<mask> dashCount: options.dashCount,
<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/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/Builders/greasedLineBuilder.ts |
if (materialOptions.createAndAssignMaterial) {
const material =
materialOptions.materialType === GreasedLineMeshMaterialType.MATERIAL_TYPE_PBR ? new PBRMaterial(name, scene) : new StandardMaterial(name, scene);
new GreasedLinePluginMater... | <mask> color: options.color,
<mask> colorMode: options.colorMode ?? GreasedLineMeshColorMode.COLOR_MODE_SET,
<mask> };
<mask>
<mask> if (colors) {
<mask> initialMaterialOptions.colors = GreasedLineMeshBuilder.Color3toRGBAUint8(colors);
<mas... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/Builders/greasedLineBuilder.ts |
<mask>
<mask> if (colors) {
<mask> initialMaterialOptions.colors = GreasedLineMeshBuilder.Color3toRGBAUint8(colors);
<mask> }
<mask>
<mask> const material = options.materialType === GreasedLineMeshMaterialType.MATERIAL_TYPE_PBR ? new PBRMaterial(name, scene) :... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/Builders/greasedLineBuilder.ts | |
// add colors
// it will merge if any colors already on the instance
| <mask> GreasedLineMeshBuilder._SetSegmentWidths(instance, widths);
<mask> instance.addPoints(allPoints);
<mask> }
<mask>
<mask> if (colors) {
<mask> GreasedLineMeshBuilder._SetColors(instance, colors);
<mask> }
<mask>
<mask> return instance;... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/Builders/greasedLineBuilder.ts |
* Gets a number array from a Vector3 array.
* You can you for example to convert your Vector3[] offsets to the required number[] for the offsets option.
* @param array Vector3 array
* @returns an array of x, y, z coordinates as numbers [x, y, z, x, y, z, x, y, z, ....]
| <mask> return instance;
<mask> }
<mask>
<mask> /**
<mask> * Converts an array of Color3 to Uint8Array
<mask> * @param colors Arrray of Color3
<mask> * @returns Uin8Array of colors [r, g, b, a, r, g, b, a, ...]
<mask> */
<mask> public static Color3toRGBAUint8(colors: Col... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/Builders/greasedLineBuilder.ts |
public static Vector3ArrayToNumberArray(array: Vector3[]) {
return array instanceof Array<Vector3> ? (<Vector3[]>array).flatMap((v) => [v.x, v.y, v.z]) : array;
| <mask> * Converts an array of Color3 to Uint8Array
<mask> * @param colors Arrray of Color3
<mask> * @returns Uin8Array of colors [r, g, b, a, r, g, b, a, ...]
<mask> */
<mask> public static Color3toRGBAUint8(colors: Color3[]) {
<mask> const colorTable: Uint8Array = new Uint8Array(c... | [
"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/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/Builders/greasedLineBuilder.ts |
const newColors = currentColors.concat(colors);
| <mask> if (instance.material instanceof StandardMaterial || instance.material instanceof PBRMaterial) {
<mask> if (instance.greasedLineMaterial) {
<mask> const currentColors = instance.greasedLineMaterial.getOptions().colors;
<mask> if (currentColors) {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/Builders/greasedLineBuilder.ts |
<mask> }
<mask> }
<mask> }
<mask>
<mask> /**
<mask> * Merges two color tables.
<mask> * @param existingColors existing color table
<mask> * @param colorsToAppend color table to append
<mask> * @returns
<mask> */
<mask> private static _MergeColorTables... | [
"keep",
"keep",
"keep",
"keep",
"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/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/Builders/greasedLineBuilder.ts | |
import { TmpVectors, Vector3 } from "../Maths/math.vector";
import { GreasedLinePluginMaterial } from "../Materials/greasedLinePluginMaterial";
| <mask> import type { Scene } from "../scene";
<mask> import type { Matrix } from "../Maths/math.vector";
<mask> import { TmpVectors } from "../Maths/math.vector";
<mask> import { Vector3 } from "../Maths/math.vector";
<mask> import type { GreasedLineMaterialOptions } from "../Materials/greasedLinePluginMaterial";
... | [
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/greasedLineMesh.ts |
import type { Ray } from "../Culling/ray";
| <mask> import type { GreasedLineMaterialOptions } from "../Materials/greasedLinePluginMaterial";
<mask> import { GreasedLineMeshMaterialType, GreasedLinePluginMaterial } from "../Materials/greasedLinePluginMaterial";
<mask> import { BoundingSphere } from "../Culling/boundingSphere";
<mask> import { Mesh } from "./m... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/greasedLineMesh.ts |
export type GreasedLinePoints = Vector3[] | Vector3[][] | Float32Array | Float32Array[] | number[][];
| <mask> import { DeepCopier } from "../Misc/deepCopier";
<mask>
<mask> /**
<mask> * Options for creating a GreasedLineMesh
<mask> */
<mask> export interface GreasedLineMeshOptions {
</s> Requested changes on the PR </s> remove export type GreasedLinePoints = Vector3[] | Vector3[][] | Float32Array | Float32Arra... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/greasedLineMesh.ts |
points: GreasedLinePoints;
| <mask> export interface GreasedLineMeshOptions {
<mask> /**
<mask> * Points of the line.
<mask> */
<mask> points: number[][];
<mask> /**
<mask> * Each line segmment (from point to point) can have it's width multiplier. Final width = widths[segmentIdx] * width.
<mask> * Defaults t... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/greasedLineMesh.ts |
// offsets?: number[];
| <mask> /**
<mask> * Each line point can have an offset.
<mask> * Defaults to empty array. This array can be mutated any time.
<mask> */
<mask> offsets?: number[];
<mask> /**
<mask> * If instance is specified, lines are added to the specified instance.
<mask> * Defaults to un... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/greasedLineMesh.ts |
Mesh._GreasedLineMeshParser = (parsedMesh: any, scene: Scene): Mesh => {
return GreasedLineMesh.Parse(parsedMesh, scene);
};
| <mask> WIDTH_DISTRIBUTION_END = 4,
<mask> WIDTH_DISTRIBUTION_START_END = 5,
<mask> }
<mask>
<mask> /**
<mask> * GreasedLine
<mask> */
<mask> export class GreasedLineMesh extends Mesh {
<mask> private _vertexPositions: number[];
<mask> private _offsets?: number[];
</s> Requested changes on ... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/greasedLineMesh.ts |
constructor(public readonly name: string, scene: Scene, private _options: GreasedLineMeshOptions) {
| <mask> * Treshold used to pick the mesh
<mask> */
<mask> public intersectionThreshold = 10; // TODO: tune default value
<mask>
<mask> constructor(public readonly name: string, scene: Scene, private _options: GreasedLineMeshOptions, private _pluginMaterial: GreasedLinePluginMaterial) {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/greasedLineMesh.ts |
<mask> this._vertexPositions = [];
<mask> this._indices = [];
<mask> this._uvs = [];
<mask> this._points = [];
<mask> this._offsets = _options.offsets;
<mask> this._previousAndSide = [];
<mask> this._nextAndCounters = [];
<mask> this._widths = _opt... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/greasedLineMesh.ts | |
this.addPoints(GreasedLineMesh.ConvertPoints(_options.points));
}
}
/**
* "GreasedLineMesh"
* @returns "GreasedLineMesh"
*/
public getClassName(): string {
return "GreasedLineMesh";
}
/**
* Converts GreasedLinePoints to number[][]
... | <mask>
<mask> this._boundingSphere = new BoundingSphere(Vector3.Zero(), Vector3.Zero(), this._matrixWorld);
<mask>
<mask> if (_options.points) {
<mask> this.addPoints(_options.points);
<mask> }
<mask> }
<mask>
<mask> /**
<mask> * Updated a lazy line. Rerende... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/greasedLineMesh.ts |
return [];
| <mask> });
<mask> return positions;
<mask> }
<mask> }
<mask>
<mask> /**
<mask> * Updated a lazy line. Rerenders the line and updates boundinfo as well.
<mask> */
<mask> public updateLazy() {
</s> Requested changes on the PR </s> remove this.ad... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/greasedLineMesh.ts |
<mask> * Dispose the line and it's resources
<mask> */
<mask> public dispose() {
<mask> this.greasedLineMaterial?.dispose();
<mask> this.material?.dispose();
<mask> super.dispose();
<mask> }
<mask>
<mask> /**
<mask> *
</s> Requested changes on the PR </s> r... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/greasedLineMesh.ts | |
return this._widths;
| <mask> *
<mask> * @returns currente segment widths
<mask> */
<mask> public getSegmentWidths(): number[] {
<mask> return this._widths; // TODO: clone?
<mask> }
<mask>
<mask> /**
<mask> *
<mask> * @returns options of the line
</s> Requested changes on the PR </s> r... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/greasedLineMesh.ts |
return this._options;
| <mask> *
<mask> * @returns options of the line
<mask> */
<mask> public getOptions(): GreasedLineMeshOptions {
<mask> // const options = {};
<mask> // DeepCopier.DeepCopy(this._options, options);
<mask> return this._options; // TODO: DeepCopy?
<mask> }
<mask>
<ma... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/greasedLineMesh.ts |
if (this.material instanceof StandardMaterial || this.material instanceof PBRMaterial) {
return <GreasedLinePluginMaterial>this.material?.pluginManager?.getPlugin(GreasedLinePluginMaterial.GREASED_LINE_MATERIAL_NAME);
}
return null;
| <mask> /**
<mask> * Gets the pluginMaterial associated with line
<mask> */
<mask> get greasedLineMaterial() {
<mask> return this._pluginMaterial;
<mask> }
<mask>
<mask> /**
<mask> * Adds new points to the line. It doesn't rerenders the line if in lazy mode.
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/greasedLineMesh.ts |
* Clones the GreasedLineMesh.
| <mask> }
<mask> }
<mask>
<mask> /**
<mask> * Clones the line.
<mask> * @param name new line name
<mask> * @param newParent new parent node
<mask> * @returns cloned line
<mask> */
<mask> public clone(name: string = `${this.name}-cloned`, newParent?: Nullable<Node>)... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/greasedLineMesh.ts |
<mask> * @param newParent new parent node
<mask> * @returns cloned line
<mask> */
<mask> public clone(name: string = `${this.name}-cloned`, newParent?: Nullable<Node>) {
<mask> // TODO: can this method be async and can we use dynamic imports of the material?
<mask>
<mask> cons... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/greasedLineMesh.ts | |
<mask> // TODO: can this method be async and can we use dynamic imports of the material?
<mask>
<mask> const lineOptions = {};
<mask> DeepCopier.DeepCopy(this._options, lineOptions);
<mask> const materialOptions = {};
<mask> DeepCopier.DeepCopy(this._pluginMaterial.getOpti... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/greasedLineMesh.ts | |
const cloned = new GreasedLineMesh(name, this._scene, <GreasedLineMeshOptions>lineOptions);
| <mask> DeepCopier.DeepCopy(this._options, lineOptions);
<mask>
<mask> if (newParent) {
<mask> cloned.parent = newParent;
<mask> }
<mask>
<mask> return cloned;
<mask> }
</s> Requested changes on the PR </s> remove const materialOptions = {};
Deep... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/greasedLineMesh.ts |
serializationObject.type = this.getClassName();
| <mask> public serialize(serializationObject: any): void {
<mask> super.serialize(serializationObject);
<mask> serializationObject.lineOptions = this._options;
<mask> }
<mask>
<mask> /**
<mask> * Parses a serialized ground mesh
<mask> * @param parsedMesh the serialized mesh... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/greasedLineMesh.ts |
<mask> */
<mask> public serialize(serializationObject: any): void {
<mask> super.serialize(serializationObject);
<mask> serializationObject.lineOptions = this._options;
<mask> serializationObject.materialOptions = this._pluginMaterial.getOptions();
<mask> }
<mask>
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/greasedLineMesh.ts | |
* @param parsedMesh the serialized mesh
| <mask> }
<mask>
<mask> /**
<mask> * Parses a serialized ground mesh
<mask> * @param serializedMesh the serialized mesh
<mask> * @param scene the scene to create the ground mesh in
<mask> * @returns the created ground mesh
<mask> */
<mask> public static Parse(serializedMesh... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/greasedLineMesh.ts |
public static Parse(parsedMesh: any, scene: Scene): Mesh {
const lineOptions = <GreasedLineMeshOptions>parsedMesh.lineOptions;
const name = <string>parsedMesh.name;
const result = new GreasedLineMesh(name, scene, lineOptions);
return result;
| <mask> * @param serializedMesh the serialized mesh
<mask> * @param scene the scene to create the ground mesh in
<mask> * @returns the created ground mesh
<mask> */
<mask> public static Parse(serializedMesh: any, scene: Scene): Mesh {
<mask> const lineOptions = <GreasedLineMeshOptio... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/greasedLineMesh.ts |
ray: Ray
| <mask> }
<mask>
<mask> // TODO: which parameters to suppport?
<mask> public intersects(
<mask> ray: Ray,
<mask> fastCheck?: boolean | undefined,
<mask> trianglePredicate?: TrianglePickingPredicate | undefined,
<mask> onlyBoundingInfo?: boolean,
<mask> worldT... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/greasedLineMesh.ts |
const intersections = this.getIntersections(ray, true);
| <mask> worldToUse?: Matrix | undefined,
<mask> skipBoundingInfo?: boolean
<mask> ): PickingInfo {
<mask> const pickingInfo = new PickingInfo();
<mask> const intersections = this.intersections(ray);
<mask> if (intersections?.length === 1) {
<mask> const inte... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/greasedLineMesh.ts |
public getIntersections(ray: Ray, firstOnly = false): { distance: number; point: Vector3 }[] | undefined {
| <mask> * @param ray Ray
<mask> * @param firstOnly If true, the first and only intersection is immediatelly returned if found.
<mask> * @returns intersection(s)
<mask> */
<mask> public intersections(ray: Ray, firstOnly = true): { distance: number; point: Vector3 }[] | undefined {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/greasedLineMesh.ts |
const lineWidth = this.greasedLineMaterial?.getOptions().width ?? 1;
| <mask> const indices = this.getIndices();
<mask> const positions = this.getVerticesData(VertexBuffer.PositionKind);
<mask> const widths = this._widths;
<mask>
<mask> const lineWidth = this.greasedLineMaterial.getOptions().width ?? 1;
<mask>
<mask> const intersects = [];
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/greasedLineMesh.ts |
/**
* @internal
*/
// eslint-disable-next-line @typescript-eslint/no-unused-vars
public static _GreasedLineMeshParser = (parsedMesh: any, scene: Scene): Mesh => {
throw _WarnImport("GreasedLineMesh");
};
| <mask> public static _LinesMeshParser = (parsedMesh: any, scene: Scene): Mesh => {
<mask> throw _WarnImport("LinesMesh");
<mask> };
<mask>
<mask> /**
<mask> * Returns a new Mesh object parsed from the source provided.
<mask> * @param parsedMesh is the source
<mask> * @param s... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/mesh.ts |
} else if (parsedMesh.type && parsedMesh.type === "GreasedLineMesh") {
mesh = Mesh._GreasedLineMeshParser(parsedMesh, scene);
| <mask> mesh = Mesh._GroundMeshParser(parsedMesh, scene);
<mask> } else if (parsedMesh.type && parsedMesh.type === "GoldbergMesh") {
<mask> mesh = Mesh._GoldbergMeshParser(parsedMesh, scene);
<mask> } else {
<mask> mesh = new Mesh(parsedMesh.name, scene);
<mask> ... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Meshes/mesh.ts |
<mask> import { VertexBuffer } from "./../Buffers/buffer";
<mask> import { TmpVectors, Vector3 } from "../Maths/math.vector";
<mask> import type { AbstractMesh } from "../Meshes/abstractMesh";
<mask> import { Curve3 } from "..";
<mask>
<mask> /**
<mask> * Tool functions for GreasedLine
<mask> */
<mask> expo... | [
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/1e324119fe6591d24be96fa505c9ec2210d8ae0a | packages/dev/core/src/Misc/greasedLineTools.ts |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.