python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Compressing Texture2D with SetPixel() return weird colors in Unity
As the title said, I'm compressing an image (inputed as a Texture2D) by dividing the image into blocks and taking the average r, g, and b value.
Image:
But the result is mostly gray-ish color with a ...

silverfox
Votes: 0
Answers: 0
Is it faster to read from metal texture2D<float> or sample from it?
I am interested in processing a 2d image pixel-wise and need the fastest way to read pixel values from the image on metal as a texture2d. Is it faster to sample from the texture or directly read from ...
P. B.
Votes: 0
Answers: 1
Texture stitching performance
I need to stitch screen captures together into a panoramic texture to be saved as png.
The process is solely meant to run in editor and though it works, it can get really slow.
byte[] MergeTexture...
fafase
Votes: 0
Answers: 1
OpenGL texture issue on plane drawn using glDrawArrays()
I'm trying to apply a texture to a plane made up of 6 vertexes drawn using glDrawArrays()
The first triangle drawn seems to be drawn correctly but the texture for the second triangle doesn't seem to a...
Vincent Del Vecchio
Votes: 0
Answers: 1