Open tomhsiao1260 opened 2 months ago
Related #22351 and #26249.
There are a couple of issue in your code. Here is a fixed version: https://jsfiddle.net/5hyf3jzo/1/
texture.internalFormat = 'RGBA8UI'
.uvec4
.Next time, please ask for help at the forum first.
It's possible that glInternalFormat could be a bit smarter here. It looks like integer types are handled more gracefully for Red
and RG
formats but not for RGBA
.
That sounds like a good addition. Would you make a PR with your suggestion?
That sounds like a good addition. Would you make a PR with your suggestion?
Perhaps at some point but I don't think I can commit time to implementing and testing it right now. It may be worth keeping the issue open to keep track of it for the moment.
Description
I face the same issue that @gkjohnson mentioned 3 years ago. Seems the error comes from three.js doesn't support clearing or rendering to integer render targets (as Garrett Johnson said). Any update for this issue? https://arc.net/l/quote/gnimfrqg
Reproduction steps
Please check the fiddle, you can compare the different between
RGBAFormat
andRGBAIntegerFormat
in console panel.Code
See fiddle for complete example.
Live example
https://jsfiddle.net/yaohsiao/np97zdve/21/
Screenshots
Version
r166
Device
Desktop
Browser
Chrome
OS
MacOS