I generate a texture that has a series of red squares on it. It is placed on top of another texture that i generate myself, which is white. For some reason it places border around red squares. How do I disable this effect?
I use this to render both textures:
if ( this.backgroundTexture != null )
{
GUI.DrawTexture ( new Rect( Screen.width - 150, 0, 150, 150 ), this.backgroundTexture, ScaleMode.StretchToFill);
}
if ( this.squareTexture )
{
GUI.DrawTexture ( new Rect( Screen.width - 150, 0, 150, 150 ), this.squareTexture, ScaleMode.StretchToFill );
}
What causes this border to appear?
Thanks!