Hi, I have a 2D Texture Array(4 * 4), How to get the pixel corresponding to each slice?
I tried the following method, but it didn’t work.
texture(sampler2DArray, vec3(uv, sliceID))
Thank you!!!
Hi, I have a 2D Texture Array(4 * 4), How to get the pixel corresponding to each slice?
I tried the following method, but it didn’t work.
texture(sampler2DArray, vec3(uv, sliceID))
Thank you!!!
here examples for the GLSL TOP and GLSL MAT, both sampling the third slice.
sampler2DArray_GLSL.tox (3.1 KB)