- Home /
Question by
ProNoob2 · Jun 23, 2020 at 07:07 AM ·
materialrendertexturematerial colorphysics.raycastgetpixels
Calculate Texture Painting Percentage
Hello, I am using a plugin name Ink Painter to paint my planes with a texture. The problem I am having is I want to calculate how much I have painter. I've tried the getPixel() method by converting the renderTexture into a texture2D and then looping through it but the problem is the pixels are randomly colored and I cant seem to find a way to calculate them. I tried coloring all pixels the same color and then checking for the pixels which are not colored the same but still no success. If anyone can help me that would be so nice. Im stuck for abt 2 days. I think i have tried everything but still no where near success.
Comment