troika icon indicating copy to clipboard operation
troika copied to clipboard

BatchedText: not support colorRanges

Open zx69 opened this issue 1 year ago • 0 comments

Hello, I used troika to render multiply text labels with vanilla three.js.
thanks for the help of this great package! And recently I met some performance issue, and I try to use BatchedText to reduce the draw calls, but I found the colorRanges property is not working while refactoring from Text to BatchedText. I roughly glanced through the code, seems that colorRanges is not supported yet in BatchedText ? Is there any other way to use multiple color in one single Text item in BatchedText? thanks again.

zx69 avatar Sep 16 '25 02:09 zx69