In unity 3D, I get the image from the camera (color camera device) as an array of bytes from the plugin, and I want to display the image in real time on the screen.
If I use Texture2D.SetPixels32 to create a texture, it drastically reduces fps (from 80 to 10).
I think I need to do this with a shader on the GPU.
So what is the solution to make it faster? If the answer uses a shader, it can give a sample.
thanks.
source share