Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
) {
const tileSize = lineMaterial.uniforms.tileSize;
const size = new THREE.Vector3();
tile.boundingBox.getSize(size);
tileSize.value.x = size.x;
tileSize.value.y = size.y;
lineMaterial.defines.TILE_CLIP = 1;
}
if (bufferGeometry.getAttribute("color")) {
lineMaterial.defines.USE_COLOR = 1;
}
if (
technique.caps !== undefined &&
LineCapsDefinitions.hasOwnProperty(technique.caps)
) {
lineMaterial.defines[LineCapsDefinitions[technique.caps]] = 1;
}
}
// Add the solid line outlines as a separate object.
const hasSolidLinesOutlines: boolean =
isSolidLineTechnique(technique) && technique.secondaryWidth !== undefined;
const object = new ObjectCtor(bufferGeometry, material);
object.renderOrder = technique.renderOrder!;
if (group.renderOrderOffset !== undefined) {
object.renderOrder += group.renderOrderOffset;
}