Spark AR Studio: Is it possible to get the color of a screen pixel from script?

Viewed 703

For the effect I want to create, I need to get pixel color information from the screen texture. The texture sampler patch doesn't do it for me because I want to sample many points and I also didn't find a way to send its output to the script (Output is ShaderGeneric, which I can't convert to an accepted "To-script" parameter).

Is the texture data somehow accessible via code? TextureBase contains a signal field, which returns a ShaderSignal. What is that? Does it contain texture data? I couldn't find clarifying documentation on it.

It would be awesome if someone could help me with this!

2 Answers

No it is not possible. The texture data is stored on the GPU, and there is no way in Spark to read this data from the GPU to the CPU for scripting purposes.

Related