I’ve been using DataTexture with float values in order to pass elevation values to the shader.
var elevation = new THREE.DataTexture(Float32Array.from(elevationArray), 32, 32, THREE.RedFormat, THREE.FloatType);
This works fine until version r135. From r136 onwards, texture2D always retrieves 0, at least on my machine.
<= r135:
>= r136:
Here’s a fiddle :
Three DataTexture test - JSFiddle - Code Playground
Is there a better or more robust way to pass a map of float values to the shader or could this be a bug?