Skip to content

Commit a33a87f

Browse files
committed
Add "DebugTilesRenderer.getDebugColor" function
1 parent 4f95586 commit a33a87f

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,14 @@ maxDebugDistance = - 1 : Number
574574

575575
The distance value that represents white when rendering with `DISTANCE` [colorMode](#colorMode). If `maxDebugDistance` is `-1` then the radius of the tile set is used.
576576

577+
### .getDebugColor
578+
579+
```js
580+
getDebugColor : ( val : Number, target : Color ) => void
581+
```
582+
583+
The function used to map a [0, 1] value to a color for debug visualizations. By default the color is mapped from black to white.
584+
577585
## PriorityQueue
578586

579587
Piority-sorted queue to prioritize file downloads and parsing.

src/three/DebugTilesRenderer.d.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,11 @@ export class DebugTilesRenderer extends TilesRenderer {
1616
displayBoxBounds : Boolean;
1717
displaySphereBounds : Boolean;
1818
colorMode : ColorMode;
19-
20-
/** Debug color min value, default 'black' */
21-
minDebugColor : Color;
22-
/** Debug color max value, default 'white' */
23-
maxDebugColor : Color;
2419

2520
maxDebugDepth : Number;
2621
maxDebugDistance : Number;
2722
maxDebugError : Number;
2823

24+
getDebugColor : ( val: Number, target: Color ) => void;
25+
2926
}

0 commit comments

Comments
 (0)