Please help.
I tried to create a three.WebGLArrayRenderTarget with three.FloatType but found the texture type is still three.UnsignedByteType.
I thought my device didn’t support float textures, just to verify that, I created a three.WebGLRenderTarget with three.FloatType and the texture type was correct (three.FloatType).
minimum code that shows the problem: Edit fiddle - JSFiddle - Code Playground
And why it works properly if I do target2.texture.type = three.FloatType;: Edit fiddle - JSFiddle - Code Playground
it gives 0.12345679104328156 in red.
That is a known issue, see:
thanks a lot!
The bug should be fixed with the next release r177:
3 Likes
Is this a WebGL-specific problem? I’m using the following in WebGPU:
new THREE.RenderTargetArray
I have not encountered any problems using FloatType
The options parameter was not correctly processed for certain render targets. So unrelated to a specific backend.