#DataTexture Data not correctly available within shader.

3 messages · Page 1 of 1 (latest)

grave plinth
#

Hello, I am creating a DataTexture with PixelFormat THREE.RedFormat and TextureDataType THREE.FloatType. In an earlier version of Three.js (whatever was packaged with AFrame version 1.2.0), I was able to pass this texture into a shader and use the resulting data. However, after updating to AFrame 1.3.0 (which I think also bumped the version of Three.js) this is no longer working. Can anyone think of some gotchas that might be responsible?

Thanks!

pallid hollow
grave plinth
#

Ah, so apparently I just needed to set needsUpdate to true. I thought I'd tried that (and it didn't seem to be required before), but oh well 🙂 Yeah, I ran into some problems with RGBFormat getting killed