Texture of randomly placed squares

Hi all,

My purpose is to pattern a surface with randomly placed squares that have random orientation. I figured I need to create one large texture image and use mipmaps of it to optimize the result. With this I achieved the pattern I was after, but the quality is quite bad: lots of flickering far away, and pixelated nearby (improves a little better by filtering). Does anyone have a suggestion in how to do a better job? Thanks for thinking along :slight_smile:

Sanne