potree-core 2.0.13 → 2.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -56,6 +56,10 @@ export interface IPointCloudMaterialUniforms {
56
56
  clipSphereCount: IUniform<number>;
57
57
  /** Array containing clipping sphere parameters (vec4: xyz=center, w=radius) */
58
58
  clipSpheres: IUniform<Float32Array>;
59
+ /** Number of active clipping planes */
60
+ clipPlaneCount: IUniform<number>;
61
+ /** Array containing clipping plane parameters (vec4: xyz=normal, w=constant) */
62
+ clipPlanes: IUniform<Float32Array>;
59
63
  /** Depth map texture for depth-based effects, null if not used */
60
64
  depthMap: IUniform<Texture | null>;
61
65
  /** Diffuse color as RGB values [r, g, b] */
@@ -155,6 +159,7 @@ export declare class PointCloudMaterial extends RawShaderMaterial {
155
159
  clipBoxes: IClipBox[];
156
160
  numClipSpheres: number;
157
161
  clipSpheres: IClipSphere[];
162
+ private numClipPlanes;
158
163
  visibleNodesTexture: Texture | undefined;
159
164
  private visibleNodeTextureOffsets;
160
165
  private _gradient;
@@ -262,6 +267,11 @@ export declare class PointCloudMaterial extends RawShaderMaterial {
262
267
  applyDefines(shaderSrc: string): string;
263
268
  setClipBoxes(clipBoxes: IClipBox[]): void;
264
269
  setClipSpheres(clipSpheres: IClipSphere[]): void;
270
+ /**
271
+ * Syncs the inherited `clippingPlanes` property to internal shader uniforms.
272
+ * Called automatically each frame from `updateMaterial()`.
273
+ */
274
+ private syncClippingPlanes;
265
275
  get gradient(): IGradient;
266
276
  set gradient(value: IGradient);
267
277
  get classification(): IClassification;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "potree-core",
3
- "version": "2.0.13",
3
+ "version": "2.0.15",
4
4
  "description": "Potree wrapper for three.js applications",
5
5
  "repository": {
6
6
  "type": "git",