[GLES fragment shader] RGB_Integer sampler
adrianf0 last edited by
I have a video stream from a custom camera (RGBx format) read by QML MediaPlayer and presented with VideoOutput (which has VideoSurface in RGBx format as well). I would like to execute shaders on the stream. However, the unform sampler2D provided to the shader in the QML ShadderEffect returns floats number (vec4). As the camera encodes some information in the pixel colours, I would like to access original integer values (uvec4). How could I achieve it?