Hello Unity users,
I am currently trying to combine two textures into one, by script.
The main texture is a procedurally generated texture (makes random pixels at random position, some kind of colored perlin noise). I've got another texture, which is a grid (represented by white pixels) on a black background. Let's say they're both 256*256.
- I through of getting every white pixels coordinate of the grid texture and reassigning them to the main texture, but It would be alot of work repeating 256 times an action, and I would like to chose the texture size as a variable. (maybe we could use "for"? but I really don't know how to use it so I gave up)
Another way I was thinking about was use of alpha maybe?
Could someone please help me? It would be great.
Regards -Alex
Examples:
Perlin Texture:
Grid Texture: