Hello all, first time posting a topic here. I am really desperate about this.
I tried to create simple DataTexture, 32x32, with data being Float32Array, populating it with random numbers and my code looks like this:
const width = 32
const height = 32
const size = width * height //number of cells of the image - num of pixels
const data = new Float32Array(3 * size)
const color = new THREE.Color(0xffffff)
Then I used this texture on two meshes. On the first I mapped texture in MeshBasicMaterial and in the second one Iāve sent it as an uniform to the fragment shader. Both of them are totally, full black colored.
I am not receiving any error in the console except these warnings that I cannot understand how to solve.
[.WebGL-0x62e400db0e00] GL_INVALID_ENUM: Invalid internal format 0x1907.
[.WebGL-0x62e400db0e00] GL_INVALID_OPERATION: Level of detail outside of range.
I didnāt get any errors on that. I gave up on using FloatType, at the end I switched to integers like in the DataTexture documentation example on threejs.org. I couldnāt get pass those weird warnings.